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

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

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

Zhen Chen reassigned CALCITE-7497:
----------------------------------

    Assignee: terran2010

> 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
>            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)