[
https://issues.apache.org/jira/browse/CALCITE-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haisheng Yuan resolved CALCITE-3961.
------------------------------------
Resolution: Fixed
Fixed inĀ
[https://github.com/apache/calcite/commit/2a4779f478fea75c1a7b075b8da50b20b6fda9bb],
thanks for the PR, [~botong]!
> 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)