u70b3 opened a new issue, #631: URL: https://github.com/apache/paimon-rust/issues/631
### Search before asking - [x] I searched in the [issues](https://github.com/apache/paimon-rust/issues) and found nothing similar. ### Description `crates/paimon/src/spec/stats.rs` contains the only `todo!()` in the codebase: the `Display` implementation for `BinaryTableStats`. Any future code path that formats stats through `Display` (logging, debugging, error messages) will panic at runtime. ### Proposal Implement it as a labeled summary in the style of `DataFileMeta`'s `Display`: ``` BinaryTableStats{minValues=[...], maxValues=[...], nullCounts=[...]} ``` `min_values`/`max_values` are serialized `BinaryRow`s that need the column types to decode, so they print as raw bytes — the same convention `DataFileMeta` uses for its `minKey`/`keyStats` fields. `null_counts` items are `Option<i64>` where `None` means "unknown", which `{:?}` renders naturally. ### Are you willing to submit a PR? - [x] Yes, I am willing to submit a PR! -- 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]
