Merge pull request #49310 from ClickHouse/fix-analyzer-tests

Fix 02516_join_with_totals_and_subquery_bug with new analyzer
This commit is contained in:
Alexey Milovidov 2023-04-28 23:37:24 +03:00 committed by GitHub
commit f2839ad0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 2 deletions

View File

@ -124,7 +124,6 @@
02707_skip_index_with_in
02707_complex_query_fails_analyzer
02680_mysql_ast_logical_err
02516_join_with_totals_and_subquery_bug
02324_map_combinator_bug
02241_join_rocksdb_bs
02003_WithMergeableStateAfterAggregationAndLimit_LIMIT_BY_LIMIT_OFFSET

View File

@ -2,6 +2,10 @@
1
0
1
1
1
\N
100000000000000000000

View File

@ -1,3 +1,5 @@
SET allow_experimental_analyzer = 1;
SELECT *
FROM
(
@ -12,7 +14,26 @@ INNER JOIN
SELECT 1
GROUP BY 1
WITH TOTALS
) AS t2 USING (a);
) AS t2 USING (a)
SETTINGS allow_experimental_analyzer=0;
SELECT *
FROM
(
SELECT 1 AS a
) AS t1
INNER JOIN
(
SELECT 1 AS a
GROUP BY 1
WITH TOTALS
UNION ALL
SELECT 1
GROUP BY 1
WITH TOTALS
) AS t2 USING (a)
SETTINGS allow_experimental_analyzer=1;
SELECT a
FROM