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 2019/02/15 18:32:00 UTC

[jira] [Commented] (CALCITE-2852) Simplification: enable traversal of unknown UDFs

    [ https://issues.apache.org/jira/browse/CALCITE-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16769576#comment-16769576 ] 

Julian Hyde commented on CALCITE-2852:
--------------------------------------

There are no user-defined functions in that example.

> Simplification: enable traversal of 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)