Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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).
Attachments
Issue Links
- links to