From faea8afa22b862f8ef0b6d7458bd135d4dae5415 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 30 Apr 2020 10:13:19 +0300 Subject: [PATCH] Revert behaviour with duplicates in 01213_optimize_skip_unused_shards_DISTINCT Since now optimization is done only under optimize_distributed_group_by_sharding_key. --- .../01213_optimize_skip_unused_shards_DISTINCT.reference | 2 -- .../0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql | 1 - 2 files changed, 3 deletions(-) diff --git a/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference b/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference index eac8957dd47..4ade9cd9c5d 100644 --- a/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference +++ b/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference @@ -6,5 +6,3 @@ optimize_skip_unused_shards optimize_skip_unused_shards lack of WHERE 0 1 -0 -1 diff --git a/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql b/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql index 67ba1cda870..5b45bea9046 100644 --- a/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql +++ b/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql @@ -12,7 +12,6 @@ SELECT DISTINCT id FROM dist_01213 WHERE id = 1 SETTINGS distributed_group_by_no SELECT 'optimize_skip_unused_shards'; SELECT DISTINCT id FROM dist_01213 WHERE id = 1 SETTINGS optimize_skip_unused_shards=1; -- check that querying all shards is ok --- (there will be duplicates, since the INSERT was done via local table) SELECT 'optimize_skip_unused_shards lack of WHERE'; SELECT DISTINCT id FROM dist_01213 SETTINGS optimize_skip_unused_shards=1;