diff --git a/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java b/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java index 6c672b72ab3b..2452b80e3592 100644 --- a/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java +++ b/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java @@ -6062,7 +6062,6 @@ private HepProgram getTransitiveProgram() { .check(); } - @Disabled @Test void testMeasureJoin() { final String sql = "with deptm as\n" + " (select deptno, name, avg(char_length(name)) as measure m\n" @@ -6075,7 +6074,7 @@ private HepProgram getTransitiveProgram() { t.withOperatorTable(opTab -> SqlLibraryOperatorTableFactory.INSTANCE.getOperatorTable( SqlLibrary.STANDARD, SqlLibrary.CALCITE))) // for AGGREGATE - .withRule(MeasureRules.AGGREGATE, + .withRule(MeasureRules.AGGREGATE2, CoreRules.PROJECT_MERGE, MeasureRules.PROJECT) .check(); diff --git a/core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml b/core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml index 0ebdb9b469d4..6bedf930b814 100644 --- a/core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml +++ b/core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml @@ -6753,10 +6753,11 @@ LogicalProject(DEPTNO=[$0], C1=[$1]) - @@ -6774,7 +6775,7 @@ LogicalProject(DEPTNO=[$0], M=[$1])