[
https://issues.apache.org/jira/browse/CALCITE-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16723129#comment-16723129
]
Zoltan Haindrich commented on CALCITE-2736:
-------------------------------------------
[~julianhyde], [~jnadeau]: accidentally I've used the master from github; which
still had this patch.
Note that with the current changes simplifications like:
{code}
- predicate: false (type: boolean)
+ predicate: ((year = 2001) and year is null) (type: boolean)
{code}
doesn't happen anymore - at least in Hive with the now deprecated
constructors...
I haven't gone into more detail; as I've just noticed that this will not be in
1.18...
> ReduceExpressionsRule never reduces dynamic expressions but this should be
> configurable
> ---------------------------------------------------------------------------------------
>
> Key: CALCITE-2736
> URL: https://issues.apache.org/jira/browse/CALCITE-2736
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Jacques Nadeau
> Assignee: Jacques Nadeau
> Priority: Major
> Fix For: 1.19.0
>
>
> There are situations where it is helpful to reduce dynamic SqlCalls. Right
> now, the ReduceExpressionsRule always avoids doing this. We should enhance
> the rule so this can be configurable depending on where in planning the rule
> is used.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)