FatLittle commented on a change in pull request #1991:
URL: https://github.com/apache/calcite/pull/1991#discussion_r432250507
##########
File path: core/src/main/java/org/apache/calcite/tools/Programs.java
##########
@@ -266,15 +266,14 @@ public static Program standard() {
public static Program standard(RelMetadataProvider metadataProvider) {
final Program program1 =
(planner, rel, requiredOutputTraits, materializations, lattices) -> {
- planner.setRoot(rel);
Review comment:
Setting root before addMaterialization will make MaterializedViewRule
always fail to match
----------------------------------------------------------------
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]