Ngone51 commented on a change in pull request #27246:
URL: https://github.com/apache/spark/pull/27246#discussion_r443429947
##########
File path:
core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorter.java
##########
@@ -681,20 +681,19 @@ private void moveOver(UnsafeSorterIterator iter, int
steps)
ChainedIterator(Queue<UnsafeSorterIterator> iterators) {
assert iterators.size() > 0;
this.numRecords = 0;
- for (UnsafeSorterIterator iter: iterators) {
- this.numRecords += iter.getNumRecords();
- }
this.iterators = iterators;
- this.current = iterators.remove();
+ this.current = null;
Review comment:
this is not necessary?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]