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

   ## What changes are included in this PR?
   
   TPC-H Q15 reads and groups the same line items twice to find the suppliers 
with maximum revenue. When a filter compares a grouped measure to its scalar 
MIN or MAX over the same grouped input, compute the extremum as a global window 
over the group results. Equality preserves tied winners and SQL null semantics.
   
   The rule currently recognizes one integer group key, an exact integer or 
decimal measure, and a shared listing-table provider. The global window buffers 
the grouped rows, so group cardinality matters when evaluating the memory 
tradeoff.
   
   ## What is the testing strategy for this PR?
   
   The regression test checks tied winners, a null measure, and a subquery with 
a different filter. The targeted core unit test and Clippy for the core crate 
passed locally.
   
   On local TPC-H SF1 Parquet, unchanged Q15 went from **32.5 ms to 17.5 ms** 
(1.86×). Both builds used the release profile and ten target partitions. Each 
of seven alternating process pairs ran one warmup and four measured iterations. 
The numbers are medians of the process medians. Every measured query returned 
the same rows.
   
   ## Are these changes tested on a distributed cluster?
   
   Local Parquet timings are reported above.
   
   ## Are there any user-facing changes?
   
   Eligible queries can show a window operator and one grouped input in EXPLAIN.
   


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