You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Siddharth Teotia (JIRA)" <ji...@apache.org> on 2019/02/05 21:29:00 UTC

[jira] [Commented] (CALCITE-2290) Type mismatch during flattening

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

Siddharth Teotia commented on CALCITE-2290:
-------------------------------------------

Thanks [~vladimirsitnikov]. [~laurentgo]. I tried this test on calcite master 1.19.0-SNAPSHOT and it works. The actual plan is 

LogicalProject(RES2=[true])
   LogicalValues(tuples=[[\{ 1 }]])

We can close this.

> Type mismatch during flattening
> -------------------------------
>
>                 Key: CALCITE-2290
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2290
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Laurent Goujon
>            Assignee: Julian Hyde
>            Priority: Major
>
> The following query causes Calcite not being able to perform SQL to Rel conversion:
> {code:sql}
> select (res1 = 'qwe') res2 from (select (case when (false) then null else 'qwe' end) res1 from (values(1)))
> {code}
>  
> While adding the query to {{SqlToRelConverTest}}, the test generates the following output:
> {noformat}
> java.lang.AssertionError: 
> type mismatch:
> ref:
> CHAR(3) CHARACTER SET "ISO-8859-1" COLLATE "ISO-8859-1$en_US$primary"
> input:
> CHAR(3) CHARACTER SET "ISO-8859-1" COLLATE "ISO-8859-1$en_US$primary" NOT NULL
> 	at org.apache.calcite.test.SqlToRelConverterTest.testCaseFlatten(SqlToRelConverterTest.java:2786)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)