xudong963 commented on code in PR #4361:
URL: https://github.com/apache/arrow-datafusion/pull/4361#discussion_r1031694401


##########
benchmarks/src/bin/tpch.rs:
##########
@@ -337,7 +344,13 @@ async fn execute_query(
         );
     }
     let task_ctx = ctx.task_ctx();
-    let result = collect(physical_plan.clone(), task_ctx).await?;
+    let result = if enable_scheduler {
+        let scheduler = Scheduler::new(num_cpus::get());

Review Comment:
   I use `num_cpus` to initial the size of thread pool.



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

Reply via email to