Jesus Camacho Rodriguez commented on CALCITE-1417:

[~julianhyde], I have been checking and I think the answer is simple. I guess 
the Hive code was based on a version that did not have {{simplifyIs}}, which 
was introduced in Calcite 1.6. Then, when I brought the code to Calcite, I did 
not realize and thus left it as it was. Sorry about that.

> Casts of literals
> -----------------
>                 Key: CALCITE-1417
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1417
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
> 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

Reply via email to