You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/04/29 02:23:00 UTC

[jira] [Updated] (CALCITE-7497) Enable Lambda supports constant folding

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

ASF GitHub Bot updated CALCITE-7497:
------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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)