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/01/02 04:35:00 UTC

[jira] [Resolved] (CALCITE-5815) Simplify 'a = MULTISET[1,2] AND a = MULTISET[2,3]' to 'FALSE'

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

Zhen Chen resolved CALCITE-5815.
--------------------------------
    Fix Version/s: 1.42.0
         Assignee: Zhen Chen  (was: Runkang He)
       Resolution: Fixed

Fixed in [{{92cfb30}}|https://github.com/apache/calcite/commit/92cfb301750d9bf55387e5c6b3650c07407225fb]

Thanks for review [~mbudiu] 

> Simplify 'a = MULTISET[1,2] AND a = MULTISET[2,3]' to 'FALSE'
> -------------------------------------------------------------
>
>                 Key: CALCITE-5815
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5815
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.34.0
>            Reporter: Runkang He
>            Assignee: Zhen Chen
>            Priority: Major
>             Fix For: 1.42.0
>
>
> Currently the following expression with const map literal is not simplified to FALSE:
> {code:sql}
> a = MULTISET[1,2] AND a = MULTISET[2,3]
> {code}
> Since MULTISET type is comparable according to ANSI SQL standard, it would be nice to simplify above expression to FALSE.
> Note that this Jira is inspired from discussion of [CALCITE-5733|https://issues.apache.org/jira/browse/CALCITE-5733].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)