Skip to content
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

sql: make jsonb_array_to_string_array return NULL elements #112975

Merged
merged 1 commit into from Oct 27, 2023

Conversation

maryliag
Copy link
Contributor

@maryliag maryliag commented Oct 24, 2023

This commit makes the builtin jsonb_array_to_string_array return NULL elements, which were previously being removed. It also adds more testing for different types of elements on the array.

Followup from #112865 (review)

Epic: none

Release note (sql change): The newly added builting jsonb_array_to_string_array no longer removes NULL objects and includes them into the resulting array.

@maryliag maryliag requested review from a team and mgartner and removed request for a team October 24, 2023 15:41
@maryliag maryliag requested a review from a team as a code owner October 24, 2023 15:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@maryliag
Copy link
Contributor Author

friendly ping @mgartner

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @maryliag and @mgartner)


-- commits line 12 at r1:
nit: I'd reword this to something like "The newly added builting jsonb_array_to_string_array no longer removes NULL objects and includes them into the resulting array."

This commit makes the builtin `jsonb_array_to_string_array` return
NULL elements, which were previously being removed.
It also adds more testing for different types of elements on the array.

Followup from cockroachdb#112865 (review)

Epic: none

Release note (sql change): The newly added builtin
`jsonb_array_to_string_array` no longer removes NULL objects and
includes them into the resulting array.
@maryliag
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 27, 2023

Build succeeded:

@craig craig bot merged commit 385fd5e into cockroachdb:master Oct 27, 2023
8 checks passed
@maryliag maryliag deleted the improve-json-array-builtin branch October 27, 2023 19:59
@mgartner
Copy link
Collaborator

Thanks for fixing this! Sorry I was so slow to review.

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.

None yet

4 participants