Skip to content

Commit

Permalink
[improvement](spill) Disable DistinctStreamingAgg when spill is enabl…
Browse files Browse the repository at this point in the history
…ed (apache#32932)
  • Loading branch information
mrhhsg authored Mar 28, 2024
1 parent ceef19a commit 5ebaa4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5ebaa4f

Please sign in to comment.