[
https://issues.apache.org/jira/browse/CALCITE-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stamatis Zampetakis updated CALCITE-7497:
-----------------------------------------
Issue Type: Improvement (was: Bug)
> Support constant folding in Lambda expressions
> ----------------------------------------------
>
> Key: CALCITE-7497
> URL: https://issues.apache.org/jira/browse/CALCITE-7497
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: terran2010
> Assignee: terran2010
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.42.0
>
>
> When we execute the following SQL with SPARK dialect and use
> "CoreRules.PROJECT_REDUCE_EXPRESSIONS":
> {code:java}
> select \"EXISTS\"(ARRAY[1, 2, 3], x -> x > 1 + 2) {code}
> Cacltie will output:
> {code:java}
> select \"EXISTS\"(ARRAY[1, 2, 3], x -> x > 1 + 2) {code}
> If executed according to normal logic, this should return:
> {code:java}
> select \"EXISTS\"(ARRAY[1, 2, 3], x -> x > 3) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)