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

Julian Hyde commented on CALCITE-6485:
--------------------------------------

Is the test case minimal? Does the problem reproduce with just a VALUES (no 
FROM) or just a SELECT (no FROM or VALUES)? If ‘2’, ‘3’ is changed to just ‘2’ 
(string) or 2 (integer) does the problem disappear?

> Query with IN-list contains NULL throws Exception
> -------------------------------------------------
>
>                 Key: CALCITE-6485
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6485
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>
> {code:java}
>   @Test void testInOperation() {
>     sql("select 1 in (null, '2', '3') as f0 from (values (true, true, 
> true))").ok();
>   }
> {code}
> {code:java}
> Conversion to relational algebra failed to preserve datatypes:
> validated type:
> RecordType(BOOLEAN NOT NULL F0) NOT NULL
> converted type:
> RecordType(BOOLEAN F0) NOT NULL
> rel:
> LogicalValues(tuples=[[{ null }]]) {code}



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

Reply via email to