Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3041

Query runs endless when setImportance to 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • 1.23.0
    • core
    • None

    Description

      Make the following changes:

      --- a/core/src/main/java/org/apache/calcite/rel/rules/AggregateRemoveRule.java
      +++ b/core/src/main/java/org/apache/calcite/rel/rules/AggregateRemoveRule.java
      @@ -123,6 +123,7 @@ public void onMatch(RelOptRuleCall call) {
             // aggregate functions, add a project for the same effect.
             relBuilder.project(relBuilder.fields(aggregate.getGroupSet().asList()));
           }
      +    call.getPlanner().setImportance(aggregate, 0.0);
           call.transformTo(relBuilder.build());
         }
       }
      

      The query in JdbcTest.testGroupBy1Max1 will run endless.

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              hyuan Haisheng Yuan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: