Description
Assume the value ' ' with type CHAR(1) that needs to be cast to VARCHAR(10).
The method makeCast (line 488 in RexBuilder.java) trims spaces on the right hand side of the CHAR value, but this seems incorrect as it could lead to incorrect results.
Attachments
Issue Links
- is related to
-
CALCITE-2321 The type of a union of CHAR columns of different lengths should be VARCHAR (based on a conformance setting)
- Closed
- relates to
-
CALCITE-4590 Incorrect query result with fixed-length string
- Open
-
CALCITE-2311 case when returns redundant white space
- Closed