[
https://issues.apache.org/jira/browse/CALCITE-3851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chunwei Lei resolved CALCITE-3851.
----------------------------------
Fix Version/s: 1.23.0
Assignee: Chunwei Lei
Resolution: Fixed
Fixed inĀ
[https://github.com/apache/calcite/commit/15152b629c784bf7b82efe5bcbe5931ee18682c7].
Thanks for the pr, [~fan_li_ya]!
> Replace the node importance map with a set for pruned nodes
> -----------------------------------------------------------
>
> Key: CALCITE-3851
> URL: https://issues.apache.org/jira/browse/CALCITE-3851
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Liya Fan
> Assignee: Chunwei Lei
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.23.0
>
> Time Spent: 3h 50m
> Remaining Estimate: 0h
>
> Currently, volcano planner stores rel node importances with a map. In fact,
> the value of the map can only be 0.
> So there is no need to store the values, and we replace the map with a set to
> store nodes whose importances are 0.
> This makes the code logic clearer, and avoids instability caused by comparing
> floating point values.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)