Dandandan opened a new pull request, #27652:
URL: https://github.com/apache/datafusion/pull/27652

   ## Rationale
   
   A narrow query on a wide Parquet file can spend more time decoding page 
indexes than reading the selected values. This implements the column-selection 
part of #24288 for the deferred index load.
   
   ## Change
   
   Request column statistics for page-pruning predicates and offset indexes for 
columns involved in selection and decoding. Include the first leaf offset index 
used for page metrics. When a reader factory returns partial indexes, check the 
requested cells that exist in the footer before reusing them. The shared cache 
policy and row-group selection are unchanged.
   
   ## Local Parquet results
   
   Both release CLIs were built from 77611de53 on macOS. The point lookup used 
one row group, 131,072 rows, 96 INT32 columns, 64-row pages, one predicate 
column and four projected columns. Both arms returned the same rows. Across 
nine alternating process pairs the warm median went from 6 to 2 ms with a 1 KiB 
metadata cache, winning all nine. With default settings both medians were 1 ms. 
The CLI reports time to the nearest millisecond.
   
   A separate instrumented reader comparison on the same fixture estimated 
8,163,689 versus 334,185 bytes of decoded metadata. Both readers requested 
4,917,899 metadata bytes because the selected columns spanned the file. This 
fixture demonstrates decoding and memory savings.
   
   TPC-H SF1 Q6 skipped page-index loading. A short nine-pair timing was 18 vs 
23 ms. A longer 19-pair repeat with 18 executions per process measured 16 vs 16 
ms with identical results.
   
   The regression test exercises a cached offset index and a second scan that 
needs different column and offset indexes. AI-assisted implementation and local 
validation.
   


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