jinchengchenghh commented on issue #6527:
URL:
https://github.com/apache/incubator-gluten/issues/6527#issuecomment-2241945758
It failed here
```
final UnsafeSorterSpillWriter spillWriter =
new UnsafeSorterSpillWriter(blockManager, fileBufferSizeBytes,
writeMetrics,
inMemSorter.numRecords());
spillWriters.add(spillWriter);
spillIterator(inMemSorter.getSortedIterator(), spillWriter);
```
numRecords is inMemSorter.numRecords() (pos / 2), numRecordToWrite is
inMemSorter.getSortedIterator().length(), it is in function
`UnsafeSorterIterator.getSortedIterator()`
with null
```
queue.add(new SortedIterator(nullBoundaryPos / 2, 0));
queue.add(new SortedIterator((pos - nullBoundaryPos) / 2, offset));
UnsafeExternalSorter.ChainedIterator(queue)
```
without null
```
return new SortedIterator(pos / 2, offset)
```
nullBoundaryPos and pos are even.
So it should always spill all the records in inMemSorter, I don't known why
the error throws.
Does the customer change the Spark logic?
--
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]