Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upbackport-2.1: opt: normalize ANY = ... to IN ... #31271
Conversation
justinj
requested review from
nvanbenschoten and
RaduBerinde
Oct 11, 2018
justinj
requested a review
from cockroachdb/sql-opt-prs
as a
code owner
Oct 11, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
RaduBerinde
approved these changes
Oct 11, 2018
Reviewable status:
complete! 0 of 0 LGTMs obtained (and 1 stale)
justinj
merged commit 6c22a8d
into
cockroachdb:release-2.1
Oct 11, 2018
justinj
deleted the
justinj:backport2.1-30973
branch
Oct 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
justinj commentedOct 11, 2018
Backport 1/1 commits from #30973.
/cc @cockroachdb/release
This commit adds two rules which, in concert, allow a filter of the form
to constrain a scan on an index of x.
It's unclear to me if this is a win in the general case, but addressing
the conversation from a couple days ago where we discussed enabling a
placeholder ARRAY to be used instead of a tuple to possible make better
use of the plan cache.
Note this only converts constant arrays, but I don't think there's a reason
we couldn't also do array expressions.
Release note: None