Skip to content

CLI: Improve array rendering by no longer adding newlines after every array entry unless there are complex objects in the array#19795

Merged
Mytherin merged 4 commits intoduckdb:mainfrom
Mytherin:fixarrayrendering
Nov 16, 2025
Merged

CLI: Improve array rendering by no longer adding newlines after every array entry unless there are complex objects in the array#19795
Mytherin merged 4 commits intoduckdb:mainfrom
Mytherin:fixarrayrendering

Conversation

@Mytherin
Copy link
Collaborator

Follow-up fix from #19721

When rendering an array that does not contain any complex objects, wrap it on multiple lines instead of adding newlines after every comma, e.g. we render it as this:

[1, 2, 3, 4,
 5, 6, 7, 8]

Instead of this:

[
   1,
   2,
   3,
   4,
   5,
   6,
   7,
   8
]

@Mytherin Mytherin merged commit c72d573 into duckdb:main Nov 16, 2025
57 checks passed
@Mytherin Mytherin deleted the fixarrayrendering branch December 4, 2025 11:30
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Dec 31, 2025
CLI: Improve array rendering by no longer adding newlines after every array entry unless there are complex objects in the array (duckdb/duckdb#19795)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Dec 31, 2025
CLI: Improve array rendering by no longer adding newlines after every array entry unless there are complex objects in the array (duckdb/duckdb#19795)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
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.

1 participant