Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoChenzhao committed Dec 13, 2017
1 parent e40c2f1 commit 80231ab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public Iterator<UnsafeRow> sort() throws IOException {

public Iterator<UnsafeRow> sort(Iterator<UnsafeRow> inputIterator) throws IOException {
final UnsafeSorterIterator[] sortedIterator = new UnsafeSorterIterator[1];
sortedIterator[0] = sorter.getSortedIterator();
return new AbstractIterator<UnsafeRow>() {
// inputIterator == null means the rows has been inserted
boolean inserted = inputIterator == null;
Expand Down

0 comments on commit 80231ab

Please sign in to comment.