This commit is contained in:
Nikita Taranov 2023-01-09 11:57:37 +00:00
parent bdd3ef8920
commit 82963e4227
3 changed files with 5 additions and 1 deletions

View File

@ -1776,7 +1776,8 @@ static void executeMergeAggregatedImpl(
query_plan.getCurrentDataStream(),
params,
final,
settings.distributed_aggregation_memory_efficient && is_remote_storage,
/// Grouping sets don't work with distributed_aggregation_memory_efficient enabled (#43989)
settings.distributed_aggregation_memory_efficient && is_remote_storage && !has_grouping_sets,
settings.max_threads,
settings.aggregation_memory_efficient_merge_threads,
should_produce_results_in_order_of_bucket_number,

View File

@ -0,0 +1,3 @@
set distributed_aggregation_memory_efficient = 1;
select number as a, number+1 as b from remote('127.0.0.{1,2}', numbers_mt(1e5)) group by grouping sets ((a), (b)) format Null;