mrhhsg commented on code in PR #60367:
URL: https://github.com/apache/doris/pull/60367#discussion_r2772981455
##########
be/src/pipeline/pipeline_fragment_context.cpp:
##########
@@ -1314,7 +1314,7 @@ Status
PipelineFragmentContext::_create_operator(ObjectPool* pool, const TPlanNo
tnode.agg_node.use_streaming_preaggregation &&
!tnode.agg_node.grouping_exprs.empty();
const bool can_use_distinct_streaming_agg =
- tnode.agg_node.aggregate_functions.empty() &&
+ (!enable_spill || is_streaming_agg) &&
tnode.agg_node.aggregate_functions.empty() &&
Review Comment:
`DistinctStreamingAggOperatorX` 非 streaming agg
的情况下它会聚合所有数据,因为它不支持落盘,所以这里需要禁用。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]