yanlin-Lynn commented on a change in pull request #1451: [CALCITE-3334]
Refinement for Substitution-Based MV Matching
URL: https://github.com/apache/calcite/pull/1451#discussion_r324966619
##########
File path: core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java
##########
@@ -1223,6 +1258,517 @@ public UnifyResult apply(UnifyRuleCall call) {
}
}
+ /**
+ * A {@link SubstitutionVisitor.UnifyRule} that matches a
+ * {@link MutableScan} to a {@link MutableCalc} which has a {@link
MutableScan} child.
+ */
+ private static class ScanToCalcUnifyRule extends AbstractUnifyRule {
+
+ public static final ScanToCalcUnifyRule INSTANCE = new
ScanToCalcUnifyRule();
+
+ private ScanToCalcUnifyRule() {
+ super(
+ any(MutableScan.class),
+ operand(MutableCalc.class,
+ any(MutableScan.class)),
+ 0);
Review comment:
intent problem here.
----------------------------------------------------------------
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