-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small planner refactoring #17851
Small planner refactoring #17851
Conversation
Signed-off-by: Andres Taylor <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Andres Taylor <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17851 +/- ##
========================================
Coverage 67.44% 67.45%
========================================
Files 1592 1592
Lines 258205 258582 +377
========================================
+ Hits 174151 174431 +280
- Misses 84054 84151 +97 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this file there is still usage of output = compact(ctx, output)
at L47
case *Filter: | ||
if len(in.Predicates) == 0 { | ||
return in.Source, Rewrote("filter with no predicates removed") | ||
} | ||
|
||
other, isFilter := in.Source.(*Filter) | ||
if !isFilter { | ||
return in, NoRewrite | ||
} | ||
in.Source = other.Source | ||
in.Predicates = append(in.Predicates, other.Predicates...) | ||
return in, Rewrote("two filters merged into one") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no plan output change, seems we do not have a case for filter over filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code was in Filter.Compact
earlier. I think that was handling it. there's one plan that changes if I remove this code
Description
Move most of the code in
Compact
implementations to run as normal push down rewriters instead.Checklist