Skip to content

fix: update comment on FilterPushdownPropagation#20040

Merged
adriangb merged 2 commits intoapache:mainfrom
niebayes:fix/comment
Feb 6, 2026
Merged

fix: update comment on FilterPushdownPropagation#20040
adriangb merged 2 commits intoapache:mainfrom
niebayes:fix/comment

Conversation

@niebayes
Copy link
Contributor

Which issue does this PR close?

No

Rationale for this change

I think the original comment is misleading as we actually want to express if a parent filter was pushed down to any child successfully.

What changes are included in this PR?

Updated the comment about the filters in the FilterPushdownPropagation struct.

Are these changes tested?

No need to test as it only modifies comments.

Are there any user-facing changes?

Yes, but only touches the comment.

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Jan 28, 2026
Copy link
Contributor

@masonh22 masonh22 left a comment

Choose a reason for hiding this comment

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

Looks good, I just have one small comment

#[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..."

Copy link
Contributor

Choose a reason for hiding this comment

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

In this case this is from a node to it's parent. As far as that node is concerned all fitlers came from the parent (it doesn't care if it's grandparent's filters or parent's filters)

@xudong963 xudong963 requested a review from adriangb February 6, 2026 07:14
Copy link
Contributor

@adriangb adriangb left a comment

Choose a reason for hiding this comment

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

Thanks!

@adriangb adriangb added this pull request to the merge queue Feb 6, 2026
Merged via the queue into apache:main with commit ee01acf Feb 6, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants