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



##########
File path: rust/datafusion/src/physical_plan/planner.rs
##########
@@ -110,6 +111,16 @@ impl DefaultPhysicalPlanner {
             // leaf node, children cannot be replaced
             Ok(plan.clone())
         } else {
+            // wrap filter in coalesce batches
+            let plan = if plan.as_any().downcast_ref::<FilterExec>().is_some() 
{
+                let target_batch_size = ctx_state.config.batch_size;

Review comment:
       I actually wanted a separate config for this but I would like to do this 
once we have https://issues.apache.org/jira/browse/ARROW-11059 (which I would 
like to try and get in for 3.0.0).
   
   I think changing it to half the batch size for now could make sense. I will 
push that change to this PR.




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