-
Notifications
You must be signed in to change notification settings - Fork 646
Test pruning toggles AST optimization pass with query planner #12784
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
base: zenador/fix-ast-opt-pass-step-invar-expr
Are you sure you want to change the base?
Test pruning toggles AST optimization pass with query planner #12784
Conversation
require.NoError(t, testutil.GatherAndCompare(g, strings.NewReader(expectedMetrics), metricNameTotal, metricNameChanged)) | ||
} | ||
|
||
func TestPruneTogglesWithQueryPlan(t *testing.T) { |
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.
Rather than introducing a new unit test for this, what if we changed the existing unit tests to follow this structure?
(and not just this optimisation pass, but all of them)
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.
Didn't make this change for reordering histograms and propagating matchers as those are currently frontend middlewares, not optimization passes, so can't be added to the query plan.
f85c241
to
d88cfef
Compare
What this PR does
Make our unit testing of the pruning toggles more thorough by testing it as part of the query planner.
Just pruning toggles for now as the other new ones are applied as frontend middlewares.
Which issue(s) this PR fixes or relates to
Follow up to #12783 , waiting for that to be merged first.
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
. If changelog entry is not needed, please add thechangelog-not-needed
label to the PR.about-versioning.md
updated with experimental features.Only updates tests, not user facing.