soumyakanti3578 commented on a change in pull request #1959:
URL: https://github.com/apache/hive/pull/1959#discussion_r572938384
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveJoinConstraintsRule.java
##########
@@ -334,11 +335,13 @@ private void rewrite(final Mode mode, final RelNode
inputToKeep, final RelNode i
}
} else { // Mode.TRANSFORM
// Trigger transformation
+ List<RexNode> exps = new ArrayList<>();
+ project.accept(new ChildExpsRexShuttle(exps));
call.transformTo(call.builder()
.push(leftInput).push(rightInput)
.join(JoinRelType.INNER, join.getCondition())
.convert(call.rel(1).getRowType(), false) // Preserve nullability
- .project(project.getChildExps())
Review comment:
The project here is of type `RelNode` which doesn't have a `getProjects`
method. In other places, generally the variable is of `Project` type.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]