sql: optimize = ANY
like IN
#13593
Labels
A-sql-optimizer
SQL logical planning and optimizations.
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
Milestone
Once arrays are supported we run into queries that select specific values with
WHERE s = ANY([a,b,c])
instead ofs IN (a,b,c)
.We need to support them "just as well" i.e. generate the corresponding index constraints and ultimately KV lookup spans.
For reference, in pg all the
IN
expressions are converted to= ANY()
internally, and only the latter refines index selection / point lookups.Reported / detected in #13358.
The text was updated successfully, but these errors were encountered: