andygrove opened a new issue, #7766:
URL: https://github.com/apache/datafusion-comet/issues/7766

   ### What is the problem the feature request solves?
   
   `reader_peak_bytes` in `native/core/src/execution/delta_dv.rs` bounds the 
memory DataFusion's Parquet reader uses while it reads a file with a deletion 
vector access plan attached. Its third term charges for the file-level combined 
selection that `ParquetAccessPlan::into_overall_row_selection` builds. 
DataFusion 56 no longer calls that function. The opener moves each row group's 
selection into the push decoder, and the decoder's copies (the 
`peek_next_row_group` clone of the queued row groups and the active row group's 
clone) are at most the retained selector count.
   
   So the bound is looser than it needs to be, and the measured peaks in its 
doc comment were taken on the old reader. The three 
`reader_path_peak_fits_the_reservation*` tests check the reservation against 
`into_overall_row_selection`, which is deprecated in 56.0.0. They will stop 
compiling when DataFusion removes it.
   
   ### Describe the potential solution
   
   Measure what the reader allocates by scanning a file with the plan attached, 
for example under a counting allocator. `ParquetAccessPlan::prepare` is 
`pub(crate)`, so it can't be called directly. Then rewrite term 3 from that 
measurement, tighten the bound if it allows, and move the three tests off 
`into_overall_row_selection`.
   
   ### Additional context
   
   Raised in review of #7249.
   


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