andygrove commented on a change in pull request #683:
URL: https://github.com/apache/arrow-datafusion/pull/683#discussion_r664229657



##########
File path: ballista/rust/core/src/utils.rs
##########
@@ -234,7 +234,9 @@ fn build_exec_plan_diagram(
 
 /// Create a DataFusion context that is compatible with Ballista
 pub fn create_datafusion_context() -> ExecutionContext {
-    let config = ExecutionConfig::new().with_concurrency(2); // TODO: this is 
hack to enable partitioned joins
+    let config = ExecutionConfig::new()
+        .with_concurrency(1)
+        .with_partitions(4); // TODO: make it easier to configure from Ballista

Review comment:
       I filed https://github.com/apache/arrow-datafusion/issues/682 for this

##########
File path: datafusion/src/execution/context.rs
##########
@@ -681,6 +684,14 @@ impl ExecutionConfig {
         self
     }
 
+    /// Customize default number of partitions being used in repartioning
+    pub fn with_partitions(mut self, n: usize) -> Self {

Review comment:
       perhaps `with_default_partitions` would be better?




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