Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.27.0
-
None
Description
Run this SQL in JdbcExample :
select * from foodmart.sales_fact_1997 as s where s.cust_id not in (null, 100)
will throw an exception:
Caused by: org.apache.calcite.runtime.CalciteException: Cannot convert null to int
Because when convert ROW values generate the wrong RelDataType:
type=RecordType(JavaType(int) ROW_VALUE),tuples=[{ null }, { 100 }])
should be(nullable):
type=RecordType(INTEGER ROW_VALUE),tuples=[{ null }, { 100 }])
Attachments
Issue Links
- links to