use of org.apache.drill.exec.record.metadata.VariantSchema in project drill by apache.
the class SingleSchemaInference method inferListSchema.
private VariantSchema inferListSchema(ListVector vector) {
final ValueVector dataVector = vector.getDataVector();
if (dataVector instanceof UnionVector) {
return inferUnionSchema((UnionVector) dataVector);
}
final VariantSchema schema = new VariantSchema();
if (!vector.isEmptyType()) {
schema.addType(inferVector(dataVector));
}
return schema;
}
Aggregations