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

[jira] [Updated] (CALCITE-3791) HepPlanner doesn't clear metadata cache for the ancestors of discarded node when a transformation happens

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

Chunwei Lei updated CALCITE-3791:
---------------------------------
    Summary: HepPlanner doesn't clear metadata cache for the ancestors of discarded node when a transformation happens  (was: HepPlanner does't clear metadata cache for the ancestors of discarded node when a transformation happens)

> HepPlanner doesn't clear metadata cache for the ancestors of discarded node when a transformation happens
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-3791
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3791
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Chunwei Lei
>            Assignee: Chunwei Lei
>            Priority: Major
>
> In HepPlanner, when a transformation happens, it will clear metadata cache for the parent of the discarded node[1]. But it doesn't clear the metadata cache for the ancestors of the parent. For example, assume we get a logical plan like
> A
>   \
>    B
>      \
>       C
> , if we clear the metadata cache for C after applying a rule, we should also clear the metadata cache for A and B since metadata of A and B derive from C.
>  
> [1][https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java#L877]
>  



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