You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/10 12:56:00 UTC
[jira] [Updated] (CALCITE-3851) Store nodes with zero importance
with a set
[ https://issues.apache.org/jira/browse/CALCITE-3851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated CALCITE-3851:
------------------------------------
Labels: pull-request-available (was: )
> Store nodes with zero importance with a set
> -------------------------------------------
>
> Key: CALCITE-3851
> URL: https://issues.apache.org/jira/browse/CALCITE-3851
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Liya Fan
> Priority: Minor
> Labels: pull-request-available
>
> 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)