Push LIMIT into scan of outer table in uncorrelated subquery #75301
Labels
A-sql-optimizer
SQL logical planning and optimizations.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-queries
SQL Queries Team
In the following test case, the LIMIT could be pushed into the scan of t1 because the EXISTS subquery executes as a totally separate query block with no references to outer table columns. If the LIMIT were pushed, it would enable the locality optimized scans in #64862.
Jira issue: CRDB-12547
The text was updated successfully, but these errors were encountered: