mihaibudiu commented on code in PR #5253:
URL: https://github.com/apache/calcite/pull/5253#discussion_r3959922072


##########
core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java:
##########
@@ -1303,6 +1308,11 @@ public TrimResult trimFields(
     // because zero-column records are illegal. Give them the last field,
     // which is unlikely to be a system field.
     if (fieldsUsed.isEmpty()) {
+      if (fieldCount == 0) {

Review Comment:
   This seems to contradict the comment above which says that "zero-column 
records are illegal". But I don't see what else you can do.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to