You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kamcheungting-db (via GitHub)" <gi...@apache.org> on 2026/10/04 05:02:35 UTC

[PR] feat(spec): add partition statistics rows and versioned schemas [iceberg-rust]

kamcheungting-db opened a new pull request, #3335:
URL: https://github.com/apache/iceberg-rust/pull/3335

   ## Which issue does this PR close?
   
   - Related to #1102.
   - Implements the first milestone proposed in #3305.
   
   ## What changes are included in this PR?
   
   - Add the public `PartitionStatistics` row model with nullable read-facing fields and a separate zero-initialized computation constructor.
   - Build version-aware stored schemas for Iceberg format v1/v2 and v3, including v3 deletion-vector defaults.
   - Preserve nested partition field IDs and reject empty partition types or field-ID collisions.
   - Export the new API and update the generated public API snapshot.
   
   This PR is limited to the row model and schema contract. It does not add statistics file I/O, computation, scanning, or metadata registration.
   
   ## Are these changes tested?
   
   Yes. Focused unit tests cover v1/v2 and v3 schemas, requiredness and defaults, nested field IDs, invalid schemas, partial rows, computation initialization, signed counters, and preservation of imported exact totals.
   
   `cargo test -p iceberg --lib spec::partition_statistics`
   
   Result: 11 passed, 0 failed.
   
   ## AI Disclosure
   
   This PR was developed with assistance from OpenAI Codex and reviewed and directed by the author.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org