Merge pull request #11315 from ClickHouse/add-test-for-distributed_low_cardinality_memory_efficient

Added a test for Distributed table with String looking at tables with LowCardinality(String) in presense of memory efficient aggregation setting
This commit is contained in:
alexey-milovidov 2020-05-31 17:30:58 +03:00 committed by GitHub
commit 5010cd724e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
DROP TABLE IF EXISTS data;
DROP TABLE IF EXISTS dist;
create table data (key String) Engine=Memory();
create table dist (key LowCardinality(String)) engine=Distributed(test_cluster_two_shards, currentDatabase(), data);
insert into data values ('foo');
set distributed_aggregation_memory_efficient=1;
select * from dist group by key;
DROP TABLE data;
DROP TABLE dist;