adriangb commented on code in PR #27360:
URL: https://github.com/apache/datafusion/pull/27360#discussion_r4763765113


##########
benchmarks/sql_benchmarks/clickbench_sorted/benchmarks/q01.benchmark:
##########
@@ -0,0 +1,11 @@
+name Q01
+group clickbench_sorted
+
+init sql_benchmarks/clickbench/init/set_config.sql
+
+load sql_benchmarks/clickbench_sorted/init/load.sql
+
+expect_plan group_clustering_mode=Partial

Review Comment:
   nit, and this is my fault, since it came from my suggested snippet: the 
suite lets you choose the sort column (`--sort-column`), and its own example 
uses `UserID DESC`. With `UserID`, the input is not ordered on `EventTime` or 
`URL`, so the planner correctly chooses a hash aggregate and `expect_plan` 
fails the run:
   
   ```
   Error: Execution error: The query physical plan does not contain the 
expected string 'group_clustering_mode=Partial'.
   ```
   
   I checked this on small synthetic data: `EventTime` ASC and DESC pass, 
`UserID` ASC and DESC fail. Could you drop the `expect_plan` line? The SLT 
already checks that the plan streams.
   
   Separately, `./bench.sh run clickbench_sorted` still uses the old `dfbench` 
queries, so it will not run this query. That is 
[#24311](https://github.com/apache/datafusion/issues/24311), not something for 
this PR. To measure it, use `cargo run --release --bin benchmark_runner -- 
clickbench_sorted`.



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