mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix 01213_optimize_skip_unused_shards_DISTINCT after distributed_group_by_no_merge optimization
This commit is contained in:
parent
93d049fe64
commit
681034f4a3
@ -6,3 +6,5 @@ optimize_skip_unused_shards
|
|||||||
optimize_skip_unused_shards lack of WHERE
|
optimize_skip_unused_shards lack of WHERE
|
||||||
0
|
0
|
||||||
1
|
1
|
||||||
|
0
|
||||||
|
1
|
||||||
|
@ -12,6 +12,7 @@ SELECT DISTINCT id FROM dist_01213 WHERE id = 1 SETTINGS distributed_group_by_no
|
|||||||
SELECT 'optimize_skip_unused_shards';
|
SELECT 'optimize_skip_unused_shards';
|
||||||
SELECT DISTINCT id FROM dist_01213 WHERE id = 1 SETTINGS optimize_skip_unused_shards=1;
|
SELECT DISTINCT id FROM dist_01213 WHERE id = 1 SETTINGS optimize_skip_unused_shards=1;
|
||||||
-- check that querying all shards is ok
|
-- 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 'optimize_skip_unused_shards lack of WHERE';
|
||||||
SELECT DISTINCT id FROM dist_01213 SETTINGS optimize_skip_unused_shards=1;
|
SELECT DISTINCT id FROM dist_01213 SETTINGS optimize_skip_unused_shards=1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user