Shuo Cheng created CALCITE-4053:
-----------------------------------
Summary: RexSimplify should not pass exprs containing non-const
subExprs to RexExecutor#reduce
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
Fix For: 1.24.0
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)