Skip to content

builtins: fix json_build_object for enums and void in the key#86675

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:fix-json-builtin
Aug 25, 2022
Merged

builtins: fix json_build_object for enums and void in the key#86675
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:fix-json-builtin

Conversation

@yuzefovich
Copy link
Copy Markdown
Member

Previously, we would run into an internal error with json_build_object
builtin if an enum or void was passed for the key part, and this is now
fixed. This commit also sorts all datums lexicographically to make it
easier to see whether all scalar datums are mentioned.

Fixes: #84368.

Release justification: bug fix.

Release note (bug fix): Previously, CockroachDB would return an internal
error when evaluating json_build_object builtin when an enum or a void
datums were passed as the first argument, and this is now fixed.

Previously, we would run into an internal error with `json_build_object`
builtin if an enum or void was passed for the key part, and this is now
fixed. This commit also sorts all datums lexicographically to make it
easier to see whether all scalar datums are mentioned.

Release justification: bug fix.

Release note (bug fix): Previously, CockroachDB would return an internal
error when evaluating `json_build_object` builtin when an enum or a void
datums were passed as the first argument, and this is now fixed.
@yuzefovich yuzefovich requested review from a team and rafiss August 23, 2022 16:06
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@yuzefovich
Copy link
Copy Markdown
Member Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 23, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 23, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 23, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 23, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 24, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 24, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 24, 2022

Build failed:

@yuzefovich
Copy link
Copy Markdown
Member Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 25, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 25, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 25, 2022

Build succeeded:

@craig craig bot merged commit eaa7eaf into cockroachdb:master Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql: v22.1.1: unexpected type *tree.DEnum for key value with jsonb_build_object

3 participants