stevenzwu opened a new pull request, #18614:
URL: https://github.com/apache/iceberg/pull/18614

   MapBackedContentStats still read ContentFile.avgValueSizes() after #18310 
replaced stored averages with total_bytes. That method derives the average and 
drops the total, so a data file wrapped as a v4 TrackedFile lost total_bytes. 
The wrapper now stores file.totalBytes(), and FieldStats reports 
hasTotalBytes() and totalBytes(). The deprecated average stays on the 
FieldStats default.
   
   Follow-up to 
https://github.com/apache/iceberg/pull/16936#discussion_r4347091655
   
   Test plan:
   - `./gradlew :iceberg-core:test --tests 
org.apache.iceberg.TestMapBackedContentStats --tests 
org.apache.iceberg.TestTrackedFileAdapters`
   
   ---
   **AI Disclosure**
   - Model: Grok 4.7
   - Platform/Tool: Cursor
   - Human Oversight: partially reviewed
   - Prompt Summary: Update MapBackedContentStats to store total bytes instead 
of the deprecated average, following Eduard's review comment on PR 16936.
   
   Made with [Cursor](https://cursor.com)


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