Github user kunal642 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2697#discussion_r215862792 --- Diff: processing/src/main/java/org/apache/carbondata/processing/store/writer/AbstractFactDataWriter.java --- @@ -225,7 +225,7 @@ protected void createNewFileIfReachThreshold(long blockletSizeToBeAdded) if ((currentFileSize + blockletSizeToBeAdded) >= blockSizeThreshold && currentFileSize != 0) { // set the current file size to zero String activeFile = - enableDirectlyWriteData2Hdfs ? carbonDataFileHdfsPath : carbonDataFileTempPath; + enableDirectlyWriteDataToStorePath ? carbonDataFileHdfsPath : carbonDataFileTempPath; --- End diff -- change `carbonDataFileHdfsPath` to `carbonDataFileStorePath ` also.
---