Merging upstream version 23.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
ebba7c6a18
commit
d26905e4af
187 changed files with 86502 additions and 71397 deletions
18
tests/fixtures/optimizer/merge_subqueries.sql
vendored
18
tests/fixtures/optimizer/merge_subqueries.sql
vendored
|
@ -429,4 +429,20 @@ WHERE
|
|||
q.a AS a
|
||||
FROM q AS q
|
||||
);
|
||||
SELECT q.a AS a FROM x AS q WHERE q.a IN (SELECT y.b AS a FROM y AS y);
|
||||
SELECT q.a AS a FROM x AS q WHERE q.a IN (SELECT y.b AS a FROM y AS y);
|
||||
|
||||
# title: dont merge when inner query has ORDER BY and outer query is UNION
|
||||
WITH q AS (
|
||||
SELECT
|
||||
x.a AS a
|
||||
FROM x
|
||||
ORDER BY x.a
|
||||
)
|
||||
SELECT
|
||||
q.a AS a
|
||||
FROM q
|
||||
UNION ALL
|
||||
SELECT
|
||||
1 AS a;
|
||||
WITH q AS (SELECT x.a AS a FROM x AS x ORDER BY x.a) SELECT q.a AS a FROM q AS q UNION ALL SELECT 1 AS a;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue