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_r264647388
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/rowSet/impl/ColumnBuilder.java
##########
@@ -171,6 +251,32 @@ private static ColumnState buildPrimitive(ContainerState
parent, ColumnMetadata
vectorState);
}
+ private void incompatibleProjection(ProjectionType projType,
+ ColumnMetadata columnSchema) {
+ StringBuilder buf = new StringBuilder()
+ .append("Projection of type ");
+ switch (projType) {
+ case ARRAY:
+ buf.append("array (a[n])");
+ break;
+ case TUPLE:
+ buf.append("tuple (a.x)");
+ break;
+ case TUPLE_ARRAY:
+ buf.append("tuple array (a[n].x");
+ break;
+ default:
+ throw new IllegalStateException();
Review comment:
Please add some message into the exception constructor.
----------------------------------------------------------------
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