Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datafusion/physical-plan/src/filter_pushdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub struct ChildPushdownResult {
/// [`ExecutionPlan::handle_child_pushdown_result`]: crate::ExecutionPlan::handle_child_pushdown_result
#[derive(Debug, Clone)]
pub struct FilterPushdownPropagation<T> {
/// What filters were pushed into the parent node.
/// Which parent filters were pushed down into this node's children.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with the physical optimizer filter pushdown rule, but push_down_filters() in physical-optimizer/src/filter_pushdown.rs specifically distinguishes between "parent" filters and "self" filters, which are both contained in FilterPushdownPropagation::filters.

So I think the comment should be "Which filters were pushed down..." instead of "Which parent filters were pushed down..."

pub filters: Vec<PushedDown>,
/// The updated node, if it was updated during pushdown
pub updated_node: Option<T>,
Expand Down