Skip to content

Fix #21289: correctly determine render width of UTF8 string with grapheme clusters - #21409

Merged
Mytherin merged 1 commit into
duckdb:v1.5-variegatafrom
Mytherin:issue21289
Mar 17, 2026
Merged

Mytherin merged 1 commit into
duckdb:v1.5-variegatafrom
Mytherin:issue21289

Conversation

@Mytherin

Copy link
Copy Markdown
Collaborator

Fixes #21289

The issue came from a mis-aligned render width popping up due to Utf8Proc::RenderWidth not correctly taking grapheme clusters into account, when BoxRenderer::TruncateValue did correctly take them into account.

@Mytherin
Mytherin merged commit 73ed005 into duckdb:v1.5-variegata Mar 17, 2026
59 checks passed
github-actions Bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 19, 2026
Date: 2026-03-17 07:50:12 +0100

Fix duckdb/duckdb#21289: correctly determine render width of UTF8 string with grapheme clusters (duckdb/duckdb#21409)
Add lance extension (duckdb/duckdb#21406)
Grab correct row group id in ValidityColumnData::UpdateWithBase (duckdb/duckdb#21397)
add test for duckdb/duckdb#21271 (duckdb/duckdb#21398)
github-actions Bot added a commit to duckdb/duckdb-r that referenced this pull request Mar 19, 2026
Date: 2026-03-17 07:50:12 +0100

Fix duckdb/duckdb#21289: correctly determine render width of UTF8 string with grapheme clusters (duckdb/duckdb#21409)
Add lance extension (duckdb/duckdb#21406)
Grab correct row group id in ValidityColumnData::UpdateWithBase (duckdb/duckdb#21397)
add test for duckdb/duckdb#21271 (duckdb/duckdb#21398)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Mar 22, 2026
Date: 2026-03-17 07:50:12 +0100

Fix duckdb/duckdb#21289: correctly determine render width of UTF8 string with grapheme clusters (duckdb/duckdb#21409)
Add lance extension (duckdb/duckdb#21406)
Grab correct row group id in ValidityColumnData::UpdateWithBase (duckdb/duckdb#21397)
add test for duckdb/duckdb#21271 (duckdb/duckdb#21398)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Mar 22, 2026
Date: 2026-03-17 07:50:12 +0100

Fix duckdb/duckdb#21289: correctly determine render width of UTF8 string with grapheme clusters (duckdb/duckdb#21409)
Add lance extension (duckdb/duckdb#21406)
Grab correct row group id in ValidityColumnData::UpdateWithBase (duckdb/duckdb#21397)
add test for duckdb/duckdb#21271 (duckdb/duckdb#21398)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Mar 22, 2026
Date: 2026-03-17 07:50:12 +0100

Fix duckdb/duckdb#21289: correctly determine render width of UTF8 string with grapheme clusters (duckdb/duckdb#21409)
Add lance extension (duckdb/duckdb#21406)
Grab correct row group id in ValidityColumnData::UpdateWithBase (duckdb/duckdb#21397)
add test for duckdb/duckdb#21271 (duckdb/duckdb#21398)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
@Mytherin
Mytherin deleted the issue21289 branch April 28, 2026 07:50
kaka11chen pushed a commit to AstroVela/vane that referenced this pull request Aug 14, 2026
…heme clusters (duckdb/duckdb#21409)

Fixes #21289

The issue came from a mis-aligned render width popping up due to
`Utf8Proc::RenderWidth` not correctly taking grapheme clusters into
account, when `BoxRenderer::TruncateValue` did correctly take them into
account.

Upstream-Commit: duckdb/duckdb@73ed005
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