Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 committed Nov 15, 2023
1 parent d0bd346 commit 8f00118
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp-ch/local-engine/Shuffle/PartitionWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void local_engine::PartitionWriter::write(const PartitionInfo& partition_info, D
if (buffer.size() >= shuffle_writer->options.split_size)
{
Block block = buffer.releaseColumns();
auto bytes = block.bytes();
auto bytes = block.allocatedBytes();
total_partition_buffer_size += bytes;
shuffle_writer->split_result.raw_partition_length[i] += bytes;
partition_buffer[i].addBlock(block);
Expand Down Expand Up @@ -131,7 +131,8 @@ std::vector<Int64> LocalPartitionWriter::mergeSpills(WriteBuffer& data_file)
spill_inputs.reserve(spill_infos.size());
for (const auto & spill : spill_infos)
{
spill_inputs.emplace_back(std::make_shared<ReadBufferFromFile>(spill.spilled_file, shuffle_writer->options.io_buffer_size));
// only use readBig
spill_inputs.emplace_back(std::make_shared<ReadBufferFromFile>(spill.spilled_file, 0));
}

Stopwatch write_time_watch;
Expand Down

0 comments on commit 8f00118

Please sign in to comment.