You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "xiong duan (Jira)" <ji...@apache.org> on 2024/07/20 02:53:00 UTC

[jira] [Updated] (CALCITE-6485) AssertionError When an IN list containing NULL has an implicit coercion type converter

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

xiong duan updated CALCITE-6485:
--------------------------------
    Summary: AssertionError When an IN list containing NULL has an implicit coercion type converter  (was: Query with IN-list contains NULL throws Exception)

> AssertionError When an IN list containing NULL has an implicit coercion type converter
> --------------------------------------------------------------------------------------
>
>                 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)