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/03/10 00:03:00 UTC

[jira] [Resolved] (CALCITE-3757) When merging sets, relnodes may be reregistered multiple times

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

Haisheng Yuan resolved CALCITE-3757.
------------------------------------
    Fix Version/s: 1.23.0
       Resolution: Fixed

Fixed in https://github.com/apache/calcite/commit/0f7dcfbffdf2e2405c835d22af78dac7124a728f.

> When merging sets, relnodes may be reregistered multiple times
> --------------------------------------------------------------
>
>                 Key: CALCITE-3757
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3757
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Haisheng Yuan
>            Priority: Major
>             Fix For: 1.23.0
>
>
> In RelSet#mergeWith(), 
> {code:java}
> // merge subsets
>     for (RelSubset otherSubset : otherSet.subsets) {
>       ......
>       for (RelNode otherRel : otherSubset.getRels()) {
>         planner.reregister(this, otherRel);
>       }
>     }
> {code}
> otherSubset.getRels() returns all the rels that satisfy the traitset. A relnode's traitset may satisfy many traitsets, hence it will be reregistered multiple times.



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