sql: generic query plans do not push limit into lookup join #128704
Labels
A-generic-query-plans
A-sql-optimizer
SQL logical planning and optimizations.
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
O-qa
T-sql-queries
SQL Queries Team
In generic query plans, we use lookup joins instead of constrained scans. But there is no lookup join equivalent to a limited constrained scan, so in generic plans we cannot push the limit into the lookup join. Supporting this might depend on #62471, though we think we could also use an overall limit for the entire lookup join instead of a per-lookup limit.
Here's an example using
cockroach demo movr
on v24.2.0-rc.1:Jira issue: CRDB-41156
The text was updated successfully, but these errors were encountered: