andygrove commented on a change in pull request #7951:
URL: https://github.com/apache/arrow/pull/7951#discussion_r469629508



##########
File path: rust/datafusion/src/execution/context.rs
##########
@@ -80,9 +82,16 @@ fn tuple_err<T, R>(value: (Result<T>, Result<R>)) -> 
Result<(T, R)> {
 impl ExecutionContext {
     /// Create a new execution context for in-memory queries
     pub fn new() -> Self {
+        Self::with_max_concurrency(2)
+    }
+
+    /// Create a new execution context for in-memory queries with the 
specified maximum
+    /// concurrency
+    pub fn with_max_concurrency(max_concurrency: usize) -> Self {

Review comment:
       This is lame. It is probably time we had a config struct to pass in.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to