chunweilei commented on a change in pull request #1917:
URL: https://github.com/apache/calcite/pull/1917#discussion_r411110372
##########
File path: core/src/main/java/org/apache/calcite/rel/rules/PushProjector.java
##########
@@ -216,9 +218,14 @@ public PushProjector(
origProjExprs = origProj.getProjects();
}
- childFields = childRel.getRowType().getFieldList();
+ if (childRel instanceof Join) {
+ Join join = (Join) childRel;
+ childFields =
Lists.newArrayList(join.getLeft().getRowType().getFieldList());
+ childFields.addAll(join.getRight().getRowType().getFieldList());
+ } else {
+ childFields = childRel.getRowType().getFieldList();
+ }
nChildFields = childFields.size();
Review comment:
Thanks for your explanation.
----------------------------------------------------------------
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]