[
https://issues.apache.org/jira/browse/CALCITE-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770863#comment-16770863
]
Zoltan Haindrich commented on CALCITE-2852:
-------------------------------------------
[~julianhyde]: at first I was only after an UDF which was present in Hive but
not in Calcite {{IF(C,V1,V2)}} ; in which simplifications agains {{C}} was not
happening - then I realized that also operands of "+" and such are also not
visited.
I've changed the summary.
> Simplification: traverse calculations and unknown UDFs
> ------------------------------------------------------
>
> Key: CALCITE-2852
> URL: https://issues.apache.org/jira/browse/CALCITE-2852
> Project: Calcite
> Issue Type: Improvement
> Reporter: Zoltan Haindrich
> Assignee: Zoltan Haindrich
> Priority: Major
>
> Currently simplification concentrates on basic constructs (and/or/=/...), but
> if it encounters an UDF which is not known; the recursion is stopped.
> For example the following expression is not simplified:
> {code:java}
> @Test public void testSimplifyRecurseIntoArithmetics() {
> checkSimplify(
> plus(literal(1),
> case_(
> falseLiteral, literal(1),
> trueLiteral, literal(2),
> literal(3))),
> "+(1, 2)");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)