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

   ## Which issue does this PR close?
   
   - Related to #27046 and #27047.
   
   ## Rationale for this change
   
   As requested in 
https://github.com/apache/datafusion/pull/27047#discussion_r4731474853, this 
splits the `first_last_orderings` benchmark out of #27047 so it can be merged 
first and the benchmark bot can compare #27047 against it.
   
   ## What changes are included in this PR?
   
   A `first_last_orderings` SQL benchmark 
(`benchmarks/sql_benchmarks/first_last_orderings`) with grouped `first_value` / 
`last_value` and `DISTINCT ON` queries over an inline table:
   
   - Q01 / Q02: `first_value` ordered by `(timestamp, int)`, with and without a 
time zone (the time zone case is #27046).
   - Q03 / Q04: `DISTINCT ON` ordered by the same timestamps.
   - Q05: `first_value` ordered by `(int, int)`.
   - Q06: `last_value` ordered by `(string, int)`.
   
   #27047 changes how the general first/last accumulator stores the orderings, 
so the queries use two ordering columns (a single primitive ordering takes a 
specialized accumulator).
   
   It is also wired into `bench.sh` (`./bench.sh run first_last_orderings`). 
The README entry is one line; the details are in comments in `init/load.sql` 
and the query files. The table size is set with `FIRST_LAST_ROWS` (default 
`2000000`).
   
   ## Are these changes tested?
   
   Ran the suite locally on `main` (`benchmark_runner first_last_orderings`), 
including the assertions in Q01 and Q03 that the orderings with and without a 
time zone pick the same rows.
   
   ## Are there any user-facing changes?
   
   No.
   


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