You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/10/18 20:23:58 UTC
[jira] [Updated] (CALCITE-1417) In RelBuilder, simplify
"CAST(literal TO type)" to a literal when possible
[ https://issues.apache.org/jira/browse/CALCITE-1417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde updated CALCITE-1417:
---------------------------------
Summary: In RelBuilder, simplify "CAST(literal TO type)" to a literal when possible (was: Casts of literals)
> In RelBuilder, simplify "CAST(literal TO type)" to a literal when possible
> --------------------------------------------------------------------------
>
> Key: CALCITE-1417
> URL: https://issues.apache.org/jira/browse/CALCITE-1417
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Fix For: 1.11.0
>
>
> In CALCITE-1357 we added some logic (in {{DruidDateTimeUtils.leafToRanges}}) to recognize various combinations of literals, casts of literals and comparison operators, and I feel that logic would be simpler if we moved the logic into {{RexUtil}} and flattened the casts of literals to just plain literals. [~jcamachorodriguez], what do you think?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)