xndai opened a new issue, #1127:
URL: https://github.com/apache/iceberg-cpp/issues/1127

   Iceberg v4 replaces the per-column metric maps (`lower_bounds`, 
`null_value_counts`, ...) with a typed `content_stats` struct in `tracked_file` 
(spec [Content Stats](https://iceberg.apache.org/spec/#content-stats), 
apache/iceberg#14234). Its field IDs are derived from the table schema: each 
field's stats struct uses the IDs from `10_000 + 200 * field-id`, plus a fixed 
offset per stat, and `_last_updated_sequence_number` and `_row_id` use the 
reserved bases 9000 and 9200. Which stats are present depends on the field type 
and the table's metrics mode. iceberg-cpp has none of this yet, and the v4 
manifest model, reader and writer all need it (part of #1107).
   
   Proposal: add a `ContentStatsUtil` with the stats ID math, the 
`content_stats` type a writer uses for a schema and `MetricsConfig`, and the 
projection a reader uses for a set of field IDs, matching Java's `StatsUtil`. 
The stats values and the bridge to the v1-v3 metric maps would be follow-ups.
   


-- 
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]

Reply via email to