Zhangshunyu opened a new pull request #3644: Fix NPE of sort merger in range sort cases URL: https://github.com/apache/carbondata/pull/3644 ### Why is this PR needed? Fix NPE of sort merger in range sort cases. in ParallelReadMergeSorterWithColumnRangeImpl, finalMerger.startFinalMerge will check whether filesToMerge.size() == 0, if true it wil return without createRecordHolderQueue and as a result it it null, and finally the code will call finalMerger.hasNext() to checlk whether thr iterator has next, but the recordHolderHeapLocal is null, it will throw NPE. ### What changes were proposed in this PR? Add null check, of recordHolderHeapLocal is null, it means not created and need merged files == 0 ### Does this PR introduce any user interface change? - No ### Is any new testcase added? - No
---------------------------------------------------------------- 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] With regards, Apache Git Services
