zhang-arvin opened a new pull request, #17916:
URL: https://github.com/apache/iceberg/pull/17916

   Fixes #17915: Incremental partition stats compute produces 
collapsed/negative rows after partition spec evolution.
   
   ### Root Cause
   
   PartitionStatsHandler.computeAndMergeStatsIncremental() used PartitionMap 
which groups by specId and compares keys using each spec own partition type. 
After spec evolution, base stats use unified partition type while delta stats 
use spec-specific partition type, causing comparator misalignment.
   
   ### Fix
   
   Use StructLikeMap with unified partition type for key comparison instead of 
PartitionMap, and remove the overly strict specId equality check in appendStats.


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