You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chan (JIRA)" <ji...@apache.org> on 2019/05/01 02:04:00 UTC

[jira] [Commented] (CALCITE-3041) Query runs endless when setImportance to 0

    [ https://issues.apache.org/jira/browse/CALCITE-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830814#comment-16830814 ] 

Danny Chan commented on CALCITE-3041:
-------------------------------------

[~hyuan] I would like to take this.

> Query runs endless when setImportance to 0
> ------------------------------------------
>
>                 Key: CALCITE-3041
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3041
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Haisheng Yuan
>            Assignee: Danny Chan
>            Priority: Major
>
> Make the following changes:
> {code:java}
> --- 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());
>    }
>  }
> {code}
> The query in {{JdbcTest.testGroupBy1Max1}} will run endless.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)