-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release-24.1: sql/types: preserve tuple labels in (*T).WithoutTypeModifiers
#142137
release-24.1: sql/types: preserve tuple labels in (*T).WithoutTypeModifiers
#142137
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @michae2)
-- commits
line 13 at r1:
nit: mention 24.1.7 version.
Previously, the `WithoutTypeModifiers` method incorrectly removed tuple labels from the returned type. This has been fixed. Fixes cockroachdb#136167 Release note (bug fix): A bug has been fixed that disregarded tuple labels in some cases. This could cause unexpected behavior, such as when converting a tuple to JSON with `to_jsonb`. See cockroachdb#136167 for more details. The incorrect removal of tuple labels bug was introduced in v22.1.0, and changes in v24.1.7 made unexpected behavior due to the bug more likely.
2888626
to
de57c8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @michae2)
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit: mention 24.1.7 version.
Done
Backport 1/1 commits from #138791.
/cc @cockroachdb/release
Previously, the
WithoutTypeModifiers
method incorrectly removed tuplelabels from the returned type. This has been fixed.
Fixes #136167
Release note (bug fix): A bug has been fixed that disregarded tuple
labels in some cases. This could cause unexpected behavior, such as when
converting a tuple to JSON with
to_jsonb
. See #136167 for moredetails. The incorrect removal of tuple labels bug was introduced in
v22.1.0, and changes in v24.1.7 made unexpected behavior due to the bug
more likely.
Release justification: Minor bug fix.