You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chen (Jira)" <ji...@apache.org> on 2020/06/11 06:40:00 UTC

[jira] [Resolved] (CALCITE-4053) RexSimplify should not pass exprs containing non-const subExprs to RexExecutor

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

Danny Chen resolved CALCITE-4053.
---------------------------------
    Resolution: Fixed

Fixed in [ac51ce7|https://github.com/apache/calcite/commit/ac51ce70b79f58e463c409f3b36f6ba2790b4369], thanks for the PR [~icshuo] !

> RexSimplify should not pass exprs containing non-const subExprs to RexExecutor
> ------------------------------------------------------------------------------
>
>                 Key: CALCITE-4053
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4053
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.23.0
>            Reporter: Shuo Cheng
>            Assignee: Shuo Cheng
>            Priority: Major
>             Fix For: 1.24.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Currently in RexSimplify#simplifyCast, if an expression is judged as a const expression but the outer CAST can not be removed, we pass the original expression to `RexExecutor` to reduce the expression which may leads to unexpected exception when the original expression contains `RexInputRef`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)