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

   ## Which issue does this PR close?
   
   Related to the TPC-DS q68 investigation in 
[apache/datafusion-comet#6418](https://github.com/apache/datafusion-comet/issues/6418).
 The reported SF1000 slowdown still needs end-to-end validation.
   
   ## Rationale for this change
   
   The Parquet reader applies each pushed `IS NOT NULL` check as a separate row 
selection. When most rows pass, applying those selections repeatedly adds work. 
When an early check drops many rows, sequential evaluation can save work by 
skipping decoding for later columns.
   
   ## What changes are included in this PR?
   
   Build a single Parquet row-filter candidate when the predicate consists of 
two or more direct integer-column `IS NOT NULL` checks and the sum of their 
null counts is at most 25% of the rows in every row group. 
   
   ## What is the testing strategy for this PR?
   
   The regression test covers sparse nulls.
   
   The q68 scan was **8.1% faster**. In an earlier run, unconditional grouping 
took 32.0 ms on the clustered-null input, compared with 11.3 ms for sequential 
checks. The null-count guard kept that case on the sequential path.
   
   ## Are there any user-facing changes?
   
   The optimization is internal to the Parquet reader and uses the existing 
filter pushdown settings.


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