Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2521#discussion_r203602958
--- Diff:
processing/src/main/java/org/apache/carbondata/processing/loading/steps/DataWriterProcessorStepImpl.java
---
@@ -184,12 +190,14 @@ private void processRange(Iterator<CarbonRowBatch>
insideRangeIterator,
dataHandler = CarbonFactHandlerFactory
.createCarbonFactHandler(model);
dataHandler.initialise();
+ carbonFactHandlers.add(dataHandler);
--- End diff --
Better add before initialize, so can you move this line above.
---