From 30145cffbaa97e65f7c33cc675c6b8fcc5bf5337 Mon Sep 17 00:00:00 2001 From: wiedld Date: Mon, 9 Sep 2024 14:19:34 -0700 Subject: [PATCH] chore: more doc cleanup --- datafusion/physical-optimizer/src/limit_pushdown.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datafusion/physical-optimizer/src/limit_pushdown.rs b/datafusion/physical-optimizer/src/limit_pushdown.rs index 776c145cbc2c..d0e035eca075 100644 --- a/datafusion/physical-optimizer/src/limit_pushdown.rs +++ b/datafusion/physical-optimizer/src/limit_pushdown.rs @@ -260,7 +260,8 @@ pub(crate) fn pushdown_limits( pushdown_plan: Arc, global_state: GlobalRequirements, ) -> Result> { - // Apply limit push down + // Call pushdown_limit_helper. + // This will either extract the limit node (returning the child), or apply the limit pushdown. let (mut new_node, mut global_state) = pushdown_limit_helper(pushdown_plan, global_state)?; @@ -269,7 +270,7 @@ pub(crate) fn pushdown_limits( (new_node, global_state) = pushdown_limit_helper(new_node.data, global_state)?; } - // Pushdown limits in children + // Apply pushdown limits in children let children = new_node.data.children(); let new_children = children .into_iter()