deniskuzZ opened a new pull request, #7015:
URL: https://github.com/apache/hive/pull/7015

   ### What changes were proposed in this pull request?
   SetReducerParallelism fixes a V3 merge-on-read DML's delete-writer count at 
estimateReducers(rewritten delete bytes) when that is above the shuffle's 
count. HiveStorageHandler.rewrittenDeleteSize (default 0) estimates the bytes; 
Iceberg V3: scanned rows x the snapshot's position deletes per live row x 0.55 
B.
   
   ### Why are the changes needed?
   The DV writers also read and rewrite the existing deletion vectors of every 
data file they touch, work the shuffle does not carry; a statement deleting few 
rows from files with many existing deletes got 1-2 writers.
   1TRC, 40 x r5d.4xlarge, the same MERGE with and without: 16 writers for 3.94 
GB of rewritten deletes (without: 2), MERGE DAG 31.3 -> 21.8 s (-30 %), deleted 
rows verified.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   - TestSetReducerParallelism (3; with the rewritten size forced to 0 the 
floor test fails), TestHiveIcebergStorageHandler (18).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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