jinxing64 commented on a change in pull request #2000:
URL: https://github.com/apache/calcite/pull/2000#discussion_r434966705
##########
File path:
core/src/test/java/org/apache/calcite/test/MaterializedViewSubstitutionVisitorTest.java
##########
@@ -410,6 +410,18 @@
sql(mv, query).noMat();
}
Review comment:
How about some doc here to explain why matching should fail.
##########
File path: core/src/main/java/org/apache/calcite/plan/SubstitutionVisitor.java
##########
@@ -1899,8 +1899,12 @@ public static MutableRel
unifyAggregates(MutableAggregate query,
if (i < 0) {
return null;
}
+ SqlAggFunction aggFunction = getRollup(aggregateCall.getAggregation());
Review comment:
How about some doc to explain why matching should fail when the function
doesn't support roll-up.
----------------------------------------------------------------
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]