Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Executing of
SELECT CAST(CAST(? AS INTEGER) AS CHAR)
query throws exception:
Conversion to relational algebra failed to preserve datatypes: validated type: RecordType(CHAR(1) NOT NULL EXPR$0) NOT NULL converted type: RecordType(CHAR(1) EXPR$0) NOT NULL rel: LogicalProject(EXPR$0=[CAST(?0):CHAR(1)]) LogicalValues(tuples=[[{ 0 }]])
Testcase - https://github.com/apache/calcite/commit/4e32d2997b80effda66d46af06ec376b44856ead
Attachments
Issue Links
- links to