Skip to content

fix: Fix array_to_string with columnar third arg#20536

Merged
goldmedal merged 2 commits intoapache:mainfrom
neilconway:neilc/array-to-string-columnar-null-bug
Feb 27, 2026
Merged

fix: Fix array_to_string with columnar third arg#20536
goldmedal merged 2 commits intoapache:mainfrom
neilconway:neilc/array-to-string-columnar-null-bug

Conversation

@neilconway
Copy link
Contributor

@neilconway neilconway commented Feb 25, 2026

Which issue does this PR close?

Rationale for this change

The previous coding used the null_string value for the first row as the value for the remainder of the rows. This is wrong if null_string is columnar.

What changes are included in this PR?

Are these changes tested?

Yes; added new SLT test.

Are there any user-facing changes?

No, other than fixing the behavior of array_to_string in this scenario.

@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Feb 25, 2026
Copy link
Contributor

@goldmedal goldmedal left a comment

Choose a reason for hiding this comment

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

Thanks @neilconway. LGTM. I have only one suggestion for the test.

@goldmedal goldmedal added this pull request to the merge queue Feb 27, 2026
Merged via the queue into apache:main with commit 451c79f Feb 27, 2026
28 checks passed
@goldmedal
Copy link
Contributor

Thanks @neilconway

@neilconway neilconway deleted the neilc/array-to-string-columnar-null-bug branch February 27, 2026 16:14
@neilconway
Copy link
Contributor Author

Thanks for the review, @goldmedal ! If you're keen to review more PRs that improve array_to_string, there is also #20553 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

array_to_string mishandles columnar third argument

2 participants