yaooqinn commented on code in PR #13550:
URL: https://github.com/apache/gluten/pull/13550#discussion_r4705064590
##########
cpp/velox/shuffle/VeloxRssSortShuffleWriter.cc:
##########
@@ -235,9 +235,8 @@ arrow::Status
VeloxRssSortShuffleWriter::reclaimFixedSize(int64_t size, int64_t*
for (auto pid = 0; pid < numPartitions(); ++pid) {
RETURN_NOT_OK(evictRowVector(pid));
}
- batches_.clear();
*actual = currentInputColumnBytes_;
- currentInputColumnBytes_ = 0;
+ resetBatches();
Review Comment:
`stop()` (line 202) still clears `batches_` and `currentInputColumnBytes_`
by hand and leaves `stringBuffers_`, the same reset this PR replaces here.
Harmless today since nothing writes after `stop()`, but would calling
`resetBatches()` there keep all three reset points on one helper? The `//
Public for test.` note on it in the header could then go.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]