Class HyperSchemaInference

java.lang.Object
org.apache.drill.exec.physical.resultSet.model.hyper.HyperSchemaInference

public class HyperSchemaInference extends Object
Infer the schema for a hyperbatch. Scans each vector of each batch to ensure that the vectors are compatible. (They should be.)

This code should be extended to handle merges. For example, batch 1 may have a union with type INT. Batch 2 might have a union with VARCHAR. The combined schema should have (INT, VARCHAR). The same is true with (non-repeated) lists. There may be other cases.