kasakrisz commented on code in PR #2916: URL: https://github.com/apache/calcite/pull/2916#discussion_r977285954
########## core/src/main/java/org/apache/calcite/rel/rules/PruneEmptyRules.java: ########## @@ -491,6 +513,29 @@ public interface JoinLeftEmptyRuleConfig extends PruneEmptyRule.Config { } } + private static void addNullLiterals(RexBuilder rexBuilder, Values empty, + List<RexNode> projectFields, List<String> newColumnNames) { + for (int i = 0; i < empty.getRowType().getFieldList().size(); ++i) { + RelDataTypeField relDataTypeField = empty.getRowType().getFieldList().get(i); + RexNode nullLiteral = rexBuilder.makeNullLiteral(relDataTypeField.getType()); + projectFields.add(nullLiteral); + newColumnNames.add(empty.getRowType().getFieldList().get(i).getName()); + } + } + + public static void copyProjects(RexBuilder rexBuilder, RelDataType inRowType, Review Comment: No it should be private so I changed. Thanks. -- 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