Skip to content

PushdownFilter optimizations #21668

Open
joroKr21 wants to merge 4 commits intoapache:mainfrom
coralogix:opt/pushdown-filter
Open

PushdownFilter optimizations #21668
joroKr21 wants to merge 4 commits intoapache:mainfrom
coralogix:opt/pushdown-filter

Conversation

@joroKr21
Copy link
Copy Markdown
Contributor

@joroKr21 joroKr21 commented Apr 16, 2026

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

  • Add a hidden Filter::new_unchecked constructor that skips type-checking
  • Less allocations, more modification of mutable plan nodes
  • Less cloning, use references when possible

Are these changes tested?

Relying on existing tests mostly, added a few more tests.

Are there any user-facing changes?

make_filter is removed, probably wasn't meant to be a public function.

@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Apr 16, 2026
@joroKr21 joroKr21 force-pushed the opt/pushdown-filter branch 2 times, most recently from 8db87e3 to 7aee0a0 Compare April 16, 2026 08:04
@joroKr21 joroKr21 marked this pull request as ready for review April 16, 2026 08:52
 - Add a hidden `Filter::new` constructor that skips type-checking
 - Less allocations, more modification of mutable plan nodes
 - Less cloning, use references when possible
@joroKr21 joroKr21 force-pushed the opt/pushdown-filter branch from 7aee0a0 to 6ce2a70 Compare April 16, 2026 09:57
@kumarUjjawal
Copy link
Copy Markdown
Contributor

@joroKr21 If the direction is agreed by the reviewer you should combine the pr, I will be happy to help.

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

Labels

logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants