Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Call createWithNullability on an UnknownSqlType currently returns a NULL type. Furthermore, it's impossible to cast to unknown types, according to SqlTypeUtil.canCastFrom. This introduces a new SqlTypeName – UNKNOWN – which behaves like NULL in all ways except that it's no longer actually equal to NULL, and can always be cast to.
Attachments
Issue Links
- causes
-
CALCITE-5040 SqlTypeFactoryTest.testUnknownCreateWithNullabilityTypeConsistency fails
- Closed
- is related to
-
CALCITE-4918 Add a VARIANT data type
- Open
- links to