laskoviymishka opened a new issue, #1001:
URL: https://github.com/apache/iceberg-go/issues/1001

   Parent: #589
   
   The v3 spec deprecates `distinct_counts` on `data_file` (Java precedent: 
[apache/iceberg#12182](https://github.com/apache/iceberg/pull/12182)). 
iceberg-go still writes the field unconditionally — 
`DataFileBuilder.DistinctValueCounts` always sets distinct counts on the 
underlying Avro record, regardless of format version.
   
   Gate the write so v3 manifests omit the field while v2 still emits it. The 
struct field can stay (Avro tolerates absent optional fields); the change is on 
the writer side.
   
   Round-trip test: write a v3 manifest with distinct counts supplied, read it 
back through `ReadManifest`, assert the distinct counts are absent; same test 
on v2 should still see the values present.


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