rubenada commented on code in PR #2829: URL: https://github.com/apache/calcite/pull/2829#discussion_r895421216
########## core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java: ########## @@ -297,11 +297,15 @@ protected final TrimResult dispatchTrimFields( assert newFieldCount > 0 : "rel has no fields after trim: " + rel; } if (newRel.equals(rel)) { - return result(rel, mapping); + return result(rel, mapping, rel); } Review Comment: Yes, we can do that. In any case, it seems I made a mistake here, I shouldn't have used the 3rd parameters in this line, since both rels are the same. -- 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: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org