Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
Signed-off-by: xufei <[email protected]>
  • Loading branch information
windtalker committed Sep 14, 2023
1 parent 895fb5e commit fed8b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Interpreters/Aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void AggregatedDataVariants::setResizeCallbackIfNeeded(size_t thread_num) const
if (agg_spill_context->isSpillEnabled() && agg_spill_context->isInAutoSpillMode())
{
auto resize_callback = [agg_spill_context, thread_num]() {
return !agg_spill_context->isThreadMarkedForAutoSpill(thread_num);
return !(agg_spill_context->supportAutoTriggerSpill() && agg_spill_context->isThreadMarkedForAutoSpill(thread_num));
};
#define M(NAME) \
case AggregationMethodType(NAME): \
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Interpreters/JoinPartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void JoinPartition::setResizeCallbackIfNeeded()
if (hash_join_spill_context->isSpillEnabled() && hash_join_spill_context->isInAutoSpillMode())
{
auto resize_callback = [this]() {
return !hash_join_spill_context->isPartitionMarkedForAutoSpill(partition_index);
return !(hash_join_spill_context->supportFurtherSpill() && hash_join_spill_context->isPartitionMarkedForAutoSpill(partition_index));
};
assert(pool != nullptr);
pool->setResizeCallback(resize_callback);
Expand Down

0 comments on commit fed8b2e

Please sign in to comment.