Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
- Loading branch information
Showing
5 changed files
with
170 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
tests/queries/0_stateless/01732_explain_syntax_union_query.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
|
||
SELECT 1 | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
) | ||
UNION ALL | ||
SELECT 1 | ||
|
||
SELECT x | ||
FROM | ||
( | ||
SELECT 1 AS x | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
) | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
|
||
SELECT x | ||
FROM | ||
( | ||
SELECT 1 AS x | ||
UNION ALL | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
|
||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
|
||
SELECT 1 | ||
|
||
|
||
( | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1 | ||
) | ||
UNION ALL | ||
SELECT 1 |
86 changes: 86 additions & 0 deletions
86
tests/queries/0_stateless/01732_explain_syntax_union_query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
EXPLAIN SYNTAX | ||
SELECT 1 | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
UNION ALL | ||
SELECT 1 | ||
); | ||
|
||
SELECT ' '; | ||
|
||
EXPLAIN SYNTAX | ||
SELECT 1 | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION DISTINCT | ||
( | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
UNION ALL | ||
SELECT 1 | ||
); | ||
|
||
SELECT ' '; | ||
|
||
EXPLAIN SYNTAX | ||
SELECT x | ||
FROM | ||
( | ||
SELECT 1 AS x | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION DISTINCT | ||
( | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
); | ||
|
||
SELECT ' '; | ||
|
||
EXPLAIN SYNTAX | ||
SELECT x | ||
FROM | ||
( | ||
SELECT 1 AS x | ||
UNION ALL | ||
( | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
) | ||
); | ||
|
||
SELECT ' '; | ||
|
||
EXPLAIN SYNTAX | ||
SELECT 1 | ||
UNION ALL | ||
SELECT 1 | ||
UNION DISTINCT | ||
SELECT 1; | ||
|
||
SELECT ' '; | ||
|
||
EXPLAIN SYNTAX | ||
(((((((((((((((SELECT 1))))))))))))))); | ||
|
||
SELECT ' '; | ||
|
||
EXPLAIN SYNTAX | ||
(((((((((((((((SELECT 1 UNION DISTINCT SELECT 1))) UNION DISTINCT SELECT 1)))) UNION ALL SELECT 1)))))))); |