[ 
https://issues.apache.org/jira/browse/CALCITE-7025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17952482#comment-17952482
 ] 

xiong duan commented on CALCITE-7025:
-------------------------------------

Fixed in 
[c0344cb|https://github.com/apache/calcite/commit/c0344cbb4dc33c2607420bec57371d44c96308d1].
 Thanks for the review [~mbudiu].

> Verifying the Quantify operator without compatible types, should throw an 
> exception about the Quantify Operator
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7025
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7025
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>              Labels: pull-request-available
>
> Unit tests in dummy.iq:
> {code:java}
> !use post
> select 1.0 = some (ARRAY[1,2,null]);
> Values passed to IN operator must have compatible types
> !error
> select * from emp where cast(true as boolean) > some(select deptno from dept 
> where false);
> Values passed to IN operator must have compatible types
> !error
> select cast(true as boolean) = some (1,2,CAST(null as INTEGER));
> Values passed to IN operator must have compatible types
> !error {code}
> The current exception is about the IN operator.



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

Reply via email to