julianhyde commented on code in PR #2916:
URL: https://github.com/apache/calcite/pull/2916#discussion_r978348511
##########
core/src/main/java/org/apache/calcite/rel/rules/PruneEmptyRules.java:
##########
@@ -479,13 +481,24 @@ public interface JoinLeftEmptyRuleConfig extends
PruneEmptyRule.Config {
@Override default PruneEmptyRule toRule() {
return new PruneEmptyRule(this) {
@Override public void onMatch(RelOptRuleCall call) {
- Join join = call.rel(0);
+ final Join join = call.rel(0);
+ final Values empty = call.rel(1);
+ final RelNode right = call.rel(2);
+ final RelBuilder b = call.builder();
Review Comment:
That's reasonable. I'll apply the change to my branch, and will merge
tomorrow when my batch of changes passes.
--
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]