Github user ravipesala commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2307#discussion_r202310789 --- Diff: core/src/main/java/org/apache/carbondata/core/writer/CarbonIndexFileMergeWriter.java --- @@ -145,9 +145,10 @@ private String writeMergeIndexFileBasedOnSegmentFile( } } - String uniqueId = String.valueOf(System.currentTimeMillis()); - String newSegmentFileName = - SegmentFileStore.genSegmentFileName(segmentId, String.valueOf(uniqueId)) + String uniqueId = (uuid.endsWith(CarbonTablePath.SEGMENT_EXT)) ? --- End diff -- Don't pass segment file name, just pass only uuid .
---