You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2019/02/21 05:30:00 UTC

[jira] [Resolved] (CALCITE-2852) RexNode simplification does not traverse unknown functions

     [ https://issues.apache.org/jira/browse/CALCITE-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesus Camacho Rodriguez resolved CALCITE-2852.
----------------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.19.0

Fixed in [b8546979e18294d756462d46c35a053f9fdcfb77|https://gitbox.apache.org/repos/asf?p=calcite.git;a=commit;h=b8546979e18294d756462d46c35a053f9fdcfb77]. Thanks [~kgyrtkirk]

> RexNode simplification does not traverse unknown functions
> ----------------------------------------------------------
>
>                 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
>              Labels: pull-request-available
>             Fix For: 1.19.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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)