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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
