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

Mihai Budiu resolved CALCITE-6736.
----------------------------------
    Fix Version/s: 1.39.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/01cfeeea8e41f97e40ef0ffa8a082b58414702ff
Thank you for the review, @ILuffZhe

> Validator accepts comparisons between arrays, multisets, maps without regard 
> to element types
> ---------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6736
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6736
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.38.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> The validator rejects this comparison (taken from SqlValidatorTest):
> {code}
>    expr("^x'a4'=1^")
>        .fails("(?s).*Cannot apply '=' to arguments of type '<BINARY.1.> = 
> <INTEGER>'.*");
> {code}
> But happily accepts this comparison:
> {code}
>    expr("array[x'e4'] <> array[1]")
>        .ok();
> {code}
> The validator should reject comparisons between arrays whose element types 
> are not comparable.



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

Reply via email to