From 30c13a508d97a0848f86fe991e92df4110b830d0 Mon Sep 17 00:00:00 2001 From: Jerry Hu Date: Wed, 27 Mar 2024 23:22:49 +0800 Subject: [PATCH] [improvement](spill) Disable DistinctStreamingAgg when spill is enabled --- be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp b/be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp index 5ed5dc8d59808e..32906cf432f1ae 100644 --- a/be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp +++ b/be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp @@ -990,7 +990,7 @@ Status PipelineXFragmentContext::_create_operator(ObjectPool* pool, const TPlanN break; } case TPlanNodeType::AGGREGATION_NODE: { - if (tnode.agg_node.aggregate_functions.empty() && + if (tnode.agg_node.aggregate_functions.empty() && !_runtime_state->enable_agg_spill() && request.query_options.__isset.enable_distinct_streaming_aggregation && request.query_options.enable_distinct_streaming_aggregation) { op.reset(new DistinctStreamingAggOperatorX(pool, next_operator_id(), tnode, descs));