Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
Description
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:
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)
Attachments
Issue Links
- links to