-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
opt: add test constraining partial index on virtual column #60601
opt: add test constraining partial index on virtual column #60601
Conversation
# the predicate. | ||
# TODO(mgartner): Teach indexConstraintCtx.simplifyFilter to remove b=140 from | ||
# the remaining filters after the index constraint is built. This will eliminate | ||
# the unnecessary index-join and select expressions. |
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.
I added this limitation to #57608 to track.
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.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @mgartner and @RaduBerinde)
pkg/sql/opt/xform/testdata/rules/select, line 1726 at r1 (raw file):
# Regression test for #55387. GenerateConstrainedScans should not reduce the # input filters when proving partial index implication.
Did you mean to remove this comment?
28f268f
to
169afb8
Compare
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @RaduBerinde and @rytaft)
pkg/sql/opt/xform/testdata/rules/select, line 1726 at r1 (raw file):
Previously, rytaft (Rebecca Taft) wrote…
Did you mean to remove this comment?
Nope! Fixed.
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @mgartner and @rytaft)
pkg/sql/opt/xform/testdata/rules/select, line 1736 at r2 (raw file):
# the unnecessary index-join and select expressions. opt SELECT k FROM virtual WHERE c = 150
Can you add a test with WHERE b = 140?
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.
Reviewed 1 of 1 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @mgartner)
169afb8
to
7c3275f
Compare
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 2 stale) (waiting on @rytaft)
pkg/sql/opt/xform/testdata/rules/select, line 1736 at r2 (raw file):
Previously, RaduBerinde wrote…
Can you add a test with WHERE b = 140?
Done. It suffers from the same limitation of simplifyFilter
.
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.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! 1 of 0 LGTMs obtained (and 1 stale)
6a5c99c
to
09134da
Compare
bors r+ |
Build failed (retrying...): |
Build failed: |
No code changes were necessary in order to generate a constrained scan for a partial index on a virtual column. Release note: None
09134da
to
2d2c867
Compare
bors r+ |
Build succeeded: |
No code changes were necessary in order to generate a constrained scan
for a partial index on a virtual column.
Release note: None