danny0405 commented on a change in pull request #1260: [CALCITE-3118] fix
VolcanoRuleCall match parent child ordinal check
URL: https://github.com/apache/calcite/pull/1260#discussion_r291450264
##########
File path:
core/src/main/java/org/apache/calcite/plan/volcano/VolcanoRuleCall.java
##########
@@ -335,7 +335,7 @@ private void matchRecurse(int solve) {
// but now check that it is the *correct* child.
final RelSubset input =
(RelSubset) rel.getInput(previousOperand.ordinalInParent);
- List<RelNode> inputRels = input.set.getRelsFromAllSubsets();
+ List<RelNode> inputRels = input.getRelList();
Review comment:
+1, nice catch, only the inputs nodes in the same RelSubSet check make sense.
----------------------------------------------------------------
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]
With regards,
Apache Git Services