Merged
Conversation
mccanne
approved these changes
Feb 17, 2026
Collaborator
mccanne
left a comment
There was a problem hiding this comment.
A heroic PR. CJ Date would be proud.
This was referenced Feb 17, 2026
nwt
added a commit
that referenced
this pull request
Feb 26, 2026
Since removal of typed nulls in #6633, a cast in SPQ of null to any type other than null or a nullable union (i.e., a union containing null) results in an error. Since SQL allows a cast of null to any type, do likewise in SPQ with the result of a cast to a non-null type being a nullable union containing the null value. For example, the result of `null::int64` is `null::(int64|null)`. Note that SUP retains the restriction that null can be cast only to null or a nullable union.
nwt
added a commit
that referenced
this pull request
Feb 26, 2026
Since removal of typed nulls in #6633, a cast in SPQ of null to any type other than null or a nullable union (i.e., a union containing null) results in an error. Since SQL allows a cast of null to any type, do likewise in SPQ with the result of a cast to a non-null type being a nullable union containing the null value. For example, the result of `null::int64` is `null::(int64|null)`. Note that SUP retains the restriction that null can be cast only to null or a nullable union.
nwt
added a commit
that referenced
this pull request
Feb 26, 2026
Since removal of typed nulls in #6633, a cast in SPQ of null to any type other than null or a nullable union (i.e., a union containing null) results in an error. Since SQL allows a cast of null to any type, do likewise in SPQ with the result of a cast to a non-null type being a nullable union containing the null value. For example, the result of `null::int64` is `null::(int64|null)`. Note that SUP retains the restriction that null can be cast only to null or a nullable union.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nullable values of type T are now represented with a union of T and null.
Fixes #6607
Fixes #6331