terran2010 created CALCITE-7497:
-----------------------------------

             Summary: Enable Lambda supports constant folding
                 Key: CALCITE-7497
                 URL: https://issues.apache.org/jira/browse/CALCITE-7497
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: terran2010


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)

Reply via email to