Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Nov 15, 2023
1 parent a9a0448 commit 4d27dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp-ch/local-engine/Shuffle/CachedShuffleWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ void CachedShuffleWriter::split(DB::Block & block)

if (options.spill_threshold > 0 && partition_writer->totalCacheSize() > options.spill_threshold)
{
partition_writer->evictPartitions();
auto tmp = rand() % 2;
partition_writer->evictPartitions(tmp == 0);
}
}

Expand Down

0 comments on commit 4d27dfb

Please sign in to comment.