You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Haisheng Yuan (Jira)" <ji...@apache.org> on 2020/06/05 03:57:00 UTC

[jira] [Resolved] (CALCITE-4030) Assert error during top-down optimization with Project/Filter Traits passdown and derivation

     [ https://issues.apache.org/jira/browse/CALCITE-4030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Haisheng Yuan resolved CALCITE-4030.
------------------------------------
    Fix Version/s: 1.24.0
       Resolution: Fixed

Fixed inĀ [https://github.com/apache/calcite/commit/feae6fbc328e3a7c87693951d1623f8b47ccea59].

> Assert error during top-down optimization with Project/Filter Traits passdown and derivation 
> ---------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-4030
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4030
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Rui Wang
>            Priority: Major
>             Fix For: 1.24.0
>
>
> For example, with https://github.com/apache/calcite/pull/1985, and enable top-down opt by set "calcite.planner.topdown.opt=true" in saffron.properties, 
> run test case SortRemoveRuleTest.removeSortOverEnumerableHashJoin, we can see:
> {code:java}
> java.lang.AssertionError
> 	at org.apache.calcite.plan.volcano.OptimizeTask$RelNodeOptTask.execute(OptimizeTask.java:232)
> 	at org.apache.calcite.plan.volcano.VolcanoPlanner.findBestExp(VolcanoPlanner.java:553)
> 	at org.apache.calcite.tools.Programs$RuleSetProgram.run(Programs.java:327)
> 	at org.apache.calcite.prepare.PlannerImpl.transform(PlannerImpl.java:362)
> 	at org.apache.calcite.rel.rules.SortRemoveRuleTest.transform(SortRemoveRuleTest.java:77)
> 	at org.apache.calcite.rel.rules.SortRemoveRuleTest.removeSortOverEnumerableHashJoin(SortRemoveRuleTest.java:102)
> {code}
> The short term workaround is to comment the assert at OptimizeTask.java:232.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)