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

xiong duan commented on CALCITE-6950:
-------------------------------------

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

> Use ANY operator to check if an element exists in an array throws exception
> ---------------------------------------------------------------------------
>
>                 Key: CALCITE-6950
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6950
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>              Labels: pull-request-available
>
> The unit test in dummy.iq:
> {code:java}
> !use scott
> SELECT
>   *
> FROM
>   "scott".emp
> WHERE
>    'SMITH' = ANY (string_to_array(ename, ',')); {code}
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 6, 
> column 4 to line 6, column 46: Values passed to IN operator must have 
> compatible types.
> In SqlQuantifyOperator#tryDeriveTypeForCollection, use the sameNamedType to 
> verify types. 
> VARCHAR(10) and CHAR(10) are considered different.



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

Reply via email to