Skip to content

Conversation

@adriangb
Copy link
Contributor

Related issues

Closes #19894. I think this will also help with #19387 as well.

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) substrait Changes to the substrait crate proto Related to proto crate labels Jan 29, 2026
Comment on lines +1757 to +1758
// Wrap with ProjectionExec if projection is present and differs from scan output
// (either non-identity, or fewer columns due to filter-only columns)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea for #19387 is that we might be able to push down trivial expressions here, thus avoiding the need for any physical optimizer changes/rules.

Comment on lines +2166 to +2170
LogicalPlan::Filter(filter) => {
// Split AND predicates into individual expressions
filters.extend(split_conjunction(&filter.predicate).into_iter().cloned());
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we can drop this since filters are effectively pushed into TableScan now?

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 29, 2026
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jan 29, 2026
@adriangb adriangb marked this pull request as ready for review January 29, 2026 21:21
@adriangb
Copy link
Contributor Author

@kosiew would you be open to reviewing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules proto Related to proto crate sql SQL Planner sqllogictest SQL Logic Tests (.slt) substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unified TableScan.filters

1 participant