1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Improvements to the EXPLAIN QUERY PLAN output for EXISTS-to-JOIN.

FossilOrigin-Name: 6b1ecbaa2ee405be040901dceac45d027d35c313622748ba4dbbd404e297a7fa
This commit is contained in:
drh
2025-07-06 01:19:09 +00:00
parent 8bc112e3e4
commit c701d17366
5 changed files with 16 additions and 22 deletions

View File

@ -338,7 +338,7 @@ det 3.3.3 {
} {
QUERY PLAN
|--SCAN t1
`--SINGLETON t2
`--SCAN t2 EXISTS
}
#-------------------------------------------------------------------------

View File

@ -94,13 +94,13 @@ do_execsql_test 2.4.0 {
do_eqp_test 2.4.1 {
SELECT count(*) FROM t1 WHERE EXISTS (SELECT 1 FROM t2 WHERE c=a);
} {SCAN t1*SINGLETON t2}
} {SCAN t1*t2 EXISTS}
do_execsql_test 2.4.2 {
ANALYZE;
}
do_eqp_test 2.4.3 {
SELECT count(*) FROM t1 WHERE EXISTS (SELECT 1 FROM t2 WHERE c=a);
} {SCAN t1*SINGLETON t2}
} {SCAN t1*t2 EXISTS}
do_execsql_test 2.4.4 {
SELECT count(*) FROM t1 WHERE EXISTS (SELECT 1 FROM t2 WHERE c=a);
} {100}