diff --git a/tests/queries/0_stateless/01291_distributed_low_cardinality_memory_efficient.reference b/tests/queries/0_stateless/01291_distributed_low_cardinality_memory_efficient.reference new file mode 100644 index 00000000000..257cc5642cb --- /dev/null +++ b/tests/queries/0_stateless/01291_distributed_low_cardinality_memory_efficient.reference @@ -0,0 +1 @@ +foo diff --git a/tests/queries/0_stateless/01291_distributed_low_cardinality_memory_efficient.sql b/tests/queries/0_stateless/01291_distributed_low_cardinality_memory_efficient.sql new file mode 100644 index 00000000000..f0992f2e438 --- /dev/null +++ b/tests/queries/0_stateless/01291_distributed_low_cardinality_memory_efficient.sql @@ -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;