fivetran-MichaelLee opened a new pull request, #3819: URL: https://github.com/apache/iceberg-rust/pull/3819
## Which issue does this PR close? - Closes #3818. ## What changes are included in this PR? `parse_bytes_entry` now skips a `lower_bounds` / `upper_bounds` entry whose bytes don't decode as the field's type, with a `tracing::warn!`, instead of failing the whole manifest. The case seen in practice is a string bound truncated by bytes inside a multi-byte UTF-8 character (see #3818). Bounds are optional: with the bound missing, the metrics evaluators treat the file as possibly matching on that column, so a scan can't skip a file it shouldn't. The other bounds and fields of the entry are read as before. Bounds of non-primitive fields still fail as before; #3707 handles Variant separately. ## Are these changes tested? Yes. `test_read_data_files_skips_undecodable_bounds` writes a data file whose string lower bound is 14 ASCII bytes plus the first 2 bytes of a 3-byte character, reads it back, and expects the same data file without that bound. It fails on `main` with `handling invalid utf-8 characters`. `cargo test -p iceberg --lib` passes, as do `cargo fmt --check` and `cargo clippy -p iceberg --all-targets --all-features -- -D warnings`. ## AI Disclosure This change was drafted with Claude Code (test, fix, and this description). I reviewed the logic and ran the tests above. Points worth a reviewer's look: - The warning is per skipped bound, so a manifest with many affected entries logs many lines. Happy to lower it to `debug`, or warn once per manifest, if preferred. - A manifest read and then rewritten by iceberg-rust (e.g. when merging manifests) will no longer carry the dropped bound. That loses pruning on that column for the file but keeps results correct. - An alternative for string lower bounds is to keep the valid UTF-8 prefix, which is still a valid lower bound. That doesn't work for upper bounds, so I kept one rule: drop what doesn't decode. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
