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/08 00:15:00 UTC

[jira] [Resolved] (CALCITE-3819) Prune parent RelNode when merging child RelSet with parent RelSet

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

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

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

> Prune parent RelNode when merging child RelSet with parent RelSet
> -----------------------------------------------------------------
>
>                 Key: CALCITE-3819
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3819
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Haisheng Yuan
>            Assignee: Haisheng Yuan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.23.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Suppose we have 2 RelSets:
> RelSet A: rel1
> RelSet B: rel2
> rel1 is the parent of rel2.
> If there is a transformation rule that transform rel1 to rel2, we will merge RelSet A and B. During merge process, we can safely prune rel1 to avoid further rule apply on rel1 and reduce search space, more importantly, avoid cyclic reference.



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