Skip to content

Commit

Permalink
Add missing openForRead in LocalPartitionWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
ccat3z committed Nov 28, 2024
1 parent 7bcaa67 commit 4d8cee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/core/shuffle/LocalPartitionWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ arrow::Status LocalPartitionWriter::stop(ShuffleWriterMetrics* metrics) {
}
}

spill->openForRead(options_.shuffleFileBufferSize);
for (auto pid = 0; pid < numPartitions_; ++pid) {
while (auto payload = spill->nextPayload(pid)) {
partitionLengths_[pid] += payload->rawSize();
Expand Down

0 comments on commit 4d8cee7

Please sign in to comment.