anoopj opened a new issue, #16218: URL: https://github.com/apache/iceberg/issues/16218
### Feature Request / Improvement ### Problem Followup from PR [feedback](https://github.com/apache/iceberg/pull/16100#discussion_r3185164312). The content file adapters convert `ContentStats` to v3 style bounds. Each call allocates a new map and, for bounds serializes every field value into a fresh `ByteBuffer`. This is acceptable when a single evaluator calls each method once per file, but if multiple evaluators are used (e.g. `InclusiveMetricsEvaluator` + `StrictMetricsEvaluator`), the maps are rebuilt and discarded repeatedly. ### Fix Add metrics evaluators that work directly with `ContentStats` / `FieldStats` rather than going through the `ContentFile` bounds/counts maps. This avoids the intermediate map allocation and per-field serialization. Once ContentStats-aware evaluators are available, ensure they are used in all v4 code paths (scan planning, manifest filtering, etc.) instead of falling back to the adapter's map-based methods. ### Query engine None ### Willingness to contribute - [x] I can contribute this improvement/feature independently - [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community - [ ] I cannot contribute this improvement/feature at this time -- 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]
