yihua opened a new pull request, #1028:
URL: https://github.com/apache/hudi-rs/pull/1028

   ## Description
   
   Part of #589. Stacked on #1005 (itself on #989): the bytes-fetched test 
opens the table over a counting store through 
`TableBuilder::with_object_store`. Please review the last commit.
   
   A merge-on-read slice with log files was read through the file group reader 
with no requested schema, so every slice decoded every column of its base file 
before the caller's projection dropped them. The slice read now asks the reader 
for the table schema narrowed to the projection, the filter columns, and 
`_hoodie_commit_time` when an incremental read narrows rows by commit time. The 
reader adds what the merge needs (record key, ordering field, delete markers, 
`_hoodie_operation`) and reads only those columns from the base file. Because a 
log block is still decoded at its writer schema, the `_hoodie_operation` delete 
check now reads that column by name whenever the reader schema's position does 
not match the block.
   
   Impact: on TPC-DS 1TB merge-on-read on S3, read through the Comet native 
Hudi scan (10 executors of 16 cores, warm), 9 scan-heavy queries took 801 s 
before and 420 s after (1.91x). For example q9 went from 204.8 s to 101.4 s, 
q28 from 227.0 s to 116.9 s and q88 from 267.1 s to 126.0 s.
   
   ## How are the changes test-covered
   
   - [ ] N/A
   - [x] Automated tests (unit and/or integration tests)
   - [ ] Manual tests
     - [ ] Details are described below
   
   Projected reads return what the full read returns for the same columns, 
eagerly and streamed. The cases are event-time and commit-time ordering, a 
delete block, a column added after the base file was written, an incremental 
window, and parquet log blocks whose projection drops the ordering field, 
`_hoodie_is_deleted` or a custom delete marker. A projected read also fetches 
fewer bytes than the full read. A unit test reads the operation marker from a 
log batch whose schema differs from a narrower reader schema; it fails without 
the by-name lookup. `cargo test -p hudi-core` passes.
   


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

Reply via email to