Commits


Jorge C. Leitao authored and Andrew Lamb committed 7a22ba9f4e0
ARROW-10859: [Rust] [DataFusion] Made collect not require ExecutionContext This PR observes that `ExecutionContext::collect(&self, plan: Arc<dyn ExecutionPlan>)` does not use `self` on its implementation. Using this observation, it refactors out `collect` out of `ExecutionContext` (into `physical_plan::collect`), thereby simplifying the execution of the plans, by not requiring creating an `ExecutionContext` just to execute a physical plan. From a design's perspective, this makes it obvious that the execution of a physical plan is entirely independent of a context and its state. Closes #8874 from jorgecarleitao/simplify_collect Authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>