You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "rraulinio (via GitHub)" <gi...@apache.org> on 2026/06/22 11:28:52 UTC
[PR] Truncate projection counts UTF-8 string prefixes in bytes instead of characters [iceberg-go]
rraulinio opened a new pull request, #1249:
URL: https://github.com/apache/iceberg-go/pull/1249
## Summary
Closes https://github.com/apache/iceberg-go/issues/1248.
Fixes UTF-8 handling in truncate projection length checks for string `NOT STARTS WITH` predicates.
String `truncate[N]` already truncates by Unicode characters/code points, but the projection helper used `len(StringLiteral)`, which counts bytes. For multibyte UTF-8 prefixes like `"éé"`, that made the projection compare a byte length against a character-based truncate width.
This changes string literal length checks to use `utf8.RuneCountInString`, while keeping binary/fixed literals byte-counted. It also adds regression coverage for Unicode prefixes in string truncate projection.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Truncate projection counts UTF-8 string prefixes in bytes instead of characters [iceberg-go]
Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #1249:
URL: https://github.com/apache/iceberg-go/pull/1249
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org