-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.20.0
-
Component/s: None
-
Labels:
Consider the following high-level example:
CREATE TYPE Coordinates AS ( x INT, y INT); CREATE TABLE Address ( loc1 Coordinates NOT NULL, loc2 Coordinates)
The least restrictive type between loc1 and loc2 is the type of loc2 (i.e., a nullable Coordinates type).
The existing code (i.e., RelDataTypeFactory#leastRestrictive) does take into account nullability when the type is structured type (or row type).
- links to