From d584f75cd73730d2678d19e164a374821d23c0af Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 29 Dec 2020 21:45:09 +0300 Subject: [PATCH] Update test --- .../01529_union_distinct_and_setting_union_default_mode.sql | 2 ++ .../0_stateless/01556_explain_select_with_union_query.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/queries/0_stateless/01529_union_distinct_and_setting_union_default_mode.sql b/tests/queries/0_stateless/01529_union_distinct_and_setting_union_default_mode.sql index e29e43f64ba..6f2fe847f5d 100644 --- a/tests/queries/0_stateless/01529_union_distinct_and_setting_union_default_mode.sql +++ b/tests/queries/0_stateless/01529_union_distinct_and_setting_union_default_mode.sql @@ -1,5 +1,7 @@ SELECT 1; +SET union_default_mode='DISTINCT'; + (((((((SELECT 1) UNION SELECT 1) UNION SELECT 1) UNION SELECT 1) UNION SELECT 1) UNION SELECT 1) UNION SELECT 1) UNION SELECT 1; (((((((SELECT 1) UNION ALL SELECT 1) UNION ALL SELECT 1) UNION ALL SELECT 1) UNION ALL SELECT 1) UNION ALL SELECT 1) UNION ALL SELECT 1) UNION ALL SELECT 1; diff --git a/tests/queries/0_stateless/01556_explain_select_with_union_query.sql b/tests/queries/0_stateless/01556_explain_select_with_union_query.sql index 16271113b5f..7abc8a36027 100644 --- a/tests/queries/0_stateless/01556_explain_select_with_union_query.sql +++ b/tests/queries/0_stateless/01556_explain_select_with_union_query.sql @@ -1,3 +1,5 @@ +SET union_default_mode = 'DISTINCT'; + EXPLAIN SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1; EXPLAIN (SELECT 1 UNION ALL SELECT 1) UNION ALL SELECT 1; EXPLAIN SELECT 1 UNION (SELECT 1 UNION ALL SELECT 1);