Github user xuchuanyin commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1707#discussion_r158927577 --- Diff: processing/src/main/java/org/apache/carbondata/processing/loading/sort/unsafe/holder/UnsafeSortTempFileChunkHolder.java --- @@ -296,11 +200,12 @@ private void fillDataForPrefetch() { * @throws CarbonSortKeyAndGroupByException */ private Object[] getRowFromStream() throws CarbonSortKeyAndGroupByException { - Object[] row = new Object[dimensionCount + measureCount]; + Object[] row = new Object[sortParameters.getDimColCount() + + sortParameters.getComplexDimColCount() + sortParameters.getMeasureColCount()]; --- End diff -- Fine~ I also find the same issues in other files and will fix it at the same time.
---