arina-ielchiieva commented on a change in pull request #1690: DRILL-7086:
Output schema for row set mechanism
URL: https://github.com/apache/drill/pull/1690#discussion_r264647972
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/rowSet/impl/ColumnBuilder.java
##########
@@ -193,16 +300,30 @@ private static ColumnState buildMap(ContainerState
parent, ColumnMetadata column
// Create the vector, vector state and writer.
if (columnSchema.isArray()) {
- return buildMapArray(parent, columnSchema);
+ return buildMapArray(parent, outputCol);
} else {
- return buildSingleMap(parent, columnSchema);
+ return buildSingleMap(parent, outputCol);
}
}
- private static ColumnState buildSingleMap(ContainerState parent,
ColumnMetadata columnSchema) {
+ private ColumnState buildSingleMap(ContainerState parent, ColumnTransformer
outputCol) {
+ ProjectionType projType = outputCol.projectionType();
+ ColumnMetadata columnSchema = outputCol.outputSchema();
+
+ switch (projType) {
+ case ARRAY:
Review comment:
Same here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services