Skip to content

Commit

Permalink
[pipelineX](localshuffle) Adjust local exchange strategy for distinct…
Browse files Browse the repository at this point in the history
… streaming agg (#32767)

Adjust local exchange strategy for distinct streaming agg
  • Loading branch information
Gabriel39 authored Mar 25, 2024
1 parent e98b4b3 commit e0e7e5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class DistinctStreamingAggOperatorX final
bool need_more_input_data(RuntimeState* state) const override;

DataDistribution required_data_distribution() const override {
if (_needs_finalize || !_probe_expr_ctxs.empty()) {
if (_needs_finalize || (!_probe_expr_ctxs.empty() && !_is_streaming_preagg)) {
return _is_colocate
? DataDistribution(ExchangeType::BUCKET_HASH_SHUFFLE, _partition_exprs)
: DataDistribution(ExchangeType::HASH_SHUFFLE, _partition_exprs);
Expand Down

0 comments on commit e0e7e5f

Please sign in to comment.