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

   ## Which issue does this PR close?
   
   - Follow-up to [#27811](https://github.com/apache/datafusion/pull/27811). 
Independent of [#27932](https://github.com/apache/datafusion/pull/27932).
   
   ## Rationale for this change
   
   With one long-lived baseline/branch process pair, a query's timing depends 
on the queries that ran before it. A 3-VM matrix (43 ClickBench queries, 
interleaved ABBA runs, 30 runs per VM) compared the forward query order against 
the reversed order. It counted query-sides (of 86) whose median moved by more 
than 3%:
   
   | Process model | mimalloc purge disabled | default mimalloc |
   | --- | --- | --- |
   | Shared pair for all queries | 7 to 10 | 28 to 41 |
   | Fresh pair per query | 0 to 2 | 3 to 7 |
   
   Wall time was the same (about 900 s per full run), because the time budget 
is per query.
   
   ## What changes are included in this PR?
   
   `benchmarks/interleave.py`:
   
   - A new required `--queries` argument (such as `0-42` or `1,3,5-7`).
   - For each query, the script starts a fresh pair with `--query <id>` and a 
temporary `-o` file per side.
   - At the end, it merges the per-query files into the `-o` file of each 
command (context from the first run, `queries` concatenated), so `compare.py` 
is unchanged.
   - ABBA order, the even-pairs rule, failure handling and the stopping rules 
are unchanged.
   
   No script in this repo calls `interleave.py` yet, so no caller changes.
   
   ## What is the testing strategy for this PR?
   
   Manual smoke run on one ClickBench partition (`hits_0.parquet`), queries 0 
and 1, `--iterations 2 --max-time 3`. Each query ran in its own pair, the 
merged files held both queries, and `compare.py` read them. A query id with no 
query file stops the run with the `dfbench` error.
   
   ## Are there any user-facing changes?
   
   `interleave.py` now needs `--queries`, and the commands must not pass 
`--query`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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