Github user manishgupta88 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2462#discussion_r202229032
--- Diff:
core/src/main/java/org/apache/carbondata/core/metadata/SegmentFileStore.java ---
@@ -304,10 +304,15 @@ public static boolean updateSegmentFile(String
tablePath, String segmentId, Stri
LoadMetadataDetails[] listOfLoadFolderDetailsArray =
SegmentStatusManager.readLoadMetadata(metadataPath);
+ if (null == segmentFileStore) {
+ segmentFileStore = new SegmentFileStore(tablePath, segmentFile);
+ }
--- End diff --
Do we need to calculate the size even if this object is null?
---