Skip to content

Conversation

Mytherin
Copy link
Collaborator

@Mytherin Mytherin commented Nov 5, 2024

This PR adds support for the .decimal_sep and .thousand_sep options that can be used in the CLI to configure how these are rendered. Note that this is only respected in duckbox mode currently. Example usage:

.decimal_sep ,
.thousand_sep _
SELECT 12345.6;
┌──────────────┐
│   12345.6    │
│ decimal(6,1) │
├──────────────┤
│     12_345,6 │
└──────────────┘

Note that there is one restriction - this currently does not work with nested types yet but only for numbers at the top-level.

@Mytherin Mytherin merged commit 9e44632 into duckdb:main Nov 6, 2024
40 checks passed
@Mytherin Mytherin deleted the duckboxthousands branch December 8, 2024 06:51
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Dec 21, 2024
CLI: Add support for `.thousand_sep` and `.decimal_sep`  (duckdb/duckdb#14721)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Dec 21, 2024
CLI: Add support for `.thousand_sep` and `.decimal_sep`  (duckdb/duckdb#14721)

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