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

   The existing equality delete benchmarks attach one equality delete file to 
one data file, which understates the read cost of streaming upserts. In a 
streaming job, every checkpoint commits an equality delete file that applies to 
all older data files in its partition, so data files collect hundreds or 
thousands of delete files between compactions.
   
   This PR adds a benchmark that models Flink upsert commits on a table with 10 
million rows. It compares scan planning and vectorized Spark reads after 100 to 
1000 commits, with the deletes stored as equality delete files or as deletion 
vectors, on an unpartitioned and a bucketed table. The setup verifies the 
delete files attached to each data file and checks the live rows against the 
expected row count and checksum.
   
   ```
   
     Full scan time of a 10M-row unpartitioned table with each commit replacing 
500 random keys.
     
┌─────────┬───────────────┬──────────────────┬──────────────────┬──────────┐
     │ Commits │ Rows replaced │ Equality deletes │ Deletion vectors │ Slowdown 
│
     
├─────────┼───────────────┼──────────────────┼──────────────────┼──────────┤
     │     200 │          1.0% │            1.6 s │           0.64 s │     2.5x 
│
     
├─────────┼───────────────┼──────────────────┼──────────────────┼──────────┤
     │     500 │          2.4% │            4.4 s │           0.76 s │     5.7x 
│
     
├─────────┼───────────────┼──────────────────┼──────────────────┼──────────┤
     │   1,000 │          4.8% │           23.3 s │            1.1 s │      21x 
│
     
└─────────┴───────────────┴──────────────────┴──────────────────┴──────────┘
   ```


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