[
https://issues.apache.org/jira/browse/HIVE-11918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14938254#comment-14938254
]
Julian Hyde commented on HIVE-11918:
------------------------------------
Thanks for confirming that the fix works. The change is already committed to
Calcite trunk and will be in 1.5.
The changes to RexBuilder would make it difficult to apply this change without
changing Calcite. Whether you upgrade it depends on timescale that you need
this fix. Easiest thing would be to wait for Calcite 1.5 (release date TBD, but
about 1 month away). If you need it before then we could create a maintenance
version of Calcite and backport the fix.
> Implement/Enable constant related optimization rules in Calcite
> ---------------------------------------------------------------
>
> Key: HIVE-11918
> URL: https://issues.apache.org/jira/browse/HIVE-11918
> Project: Hive
> Issue Type: Improvement
> Reporter: Pengcheng Xiong
> Assignee: Pengcheng Xiong
>
> Right now, Hive optimizer (Calcite) is short of the constant related
> optimization rules. For example, constant folding, constant propagation and
> constant transitive rules. Although Hive later provides those rules in the
> logical optimizer, we would like to implement those inside Calcite. This will
> benefit the current optimization as well as the optimization based on return
> path that we are planning to use in the future. This JIRA is the umbrella
> JIRA to implement/enable those rules.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)