[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Laurent Goujon created CALCITE-2290:

             Summary: Type mismatch during flattening
                 Key: CALCITE-2290
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Laurent Goujon
            Assignee: Julian Hyde

The following query causes Calcite not being able to perform SQL to Rel conversion:
select (res1 = 'qwe') res2 from (select (case when (false) then null else 'qwe' end) res1 from (values(1)))
While adding the query to {{SqlToRelConverTest}}, the test generates the following output:
type mismatch:
CHAR(3) CHARACTER SET "ISO-8859-1" COLLATE "ISO-8859-1$en_US$primary"
CHAR(3) CHARACTER SET "ISO-8859-1" COLLATE "ISO-8859-1$en_US$primary" NOT NULL
	at org.apache.calcite.test.SqlToRelConverterTest.testCaseFlatten(

This message was sent by Atlassian JIRA

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-calcite-development/msg03370.html on line 103
Call Stack
10.0006363672{main}( ).../msg03370.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-calcite-development/msg03370.html on line 103
Call Stack
10.0006363672{main}( ).../msg03370.html:0