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

Botong Huang commented on CALCITE-3961:
---------------------------------------

Thanks [~hyuan] for the review!

> VolcanoPlanner.prunedNodes information is lost when duplicate relNode is 
> discarded
> ----------------------------------------------------------------------------------
>
>                 Key: CALCITE-3961
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3961
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Botong Huang
>            Priority: Major
>             Fix For: 1.23.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> VolcanoPlanner.prunedNodes stores the list of relNodes that are marked 
> useless. Whenever the planner see two identical relNode (e.g. when Relsets 
> are merged), one of them are discarded. However, when the preserved node is 
> not in the pruned list while the discarded one is, this pruned information is 
> lost. In general, we should preserve this info whenever duplicate relNodes 
> are discarded. 



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

Reply via email to