kunal642 commented on a change in pull request #4245:
URL: https://github.com/apache/carbondata/pull/4245#discussion_r775422007
##########
File path:
core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java
##########
@@ -855,6 +855,26 @@ private static void
updateSegmentMetadataDetails(LoadMetadataDetails loadMetadat
}
}
+ /**
+ * This API will return the update status file name.
+ * @param segmentList
+ * @return
+ */
+ public String getUpdateStatusFileName(LoadMetadataDetails[] segmentList) {
+ if (segmentList.length == 0) {
+ return "";
+ }
+ else {
+ for (LoadMetadataDetails eachSeg : segmentList) {
+ // file name stored in 0th segment.
+ if (eachSeg.getLoadName().equalsIgnoreCase("0")) {
+ return eachSeg.getUpdateStatusFileName();
Review comment:
why always segment 0?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]