[GitHub] [carbondata] akkio-97 commented on a change in pull request #4001: [CARBONDATA-4029] [CARBONDATA-3908] Issue while adding segments through alter add segment command
Posted by
GitBox on
Nov 16, 2020; 2:50pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-akkio-97-opened-a-new-pull-request-4001-WIP-tp103064p103246.html
akkio-97 commented on a change in pull request #4001:
URL:
https://github.com/apache/carbondata/pull/4001#discussion_r524321124##########
File path: core/src/main/java/org/apache/carbondata/core/metadata/SegmentFileStore.java
##########
@@ -877,6 +877,10 @@ public SegmentFile getSegmentFile() {
}
if (entry.getValue().status.equals(SegmentStatus.SUCCESS.getMessage())) {
String mergeFileName = entry.getValue().getMergeFileName();
+ // remove file separator if already present
Review comment:
The path stored is always correct. It depends on the user whether he is putting '/' in the end for the segment path or not. If he is putting then adding delimiter again is wrong. Hence avoided that.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[hidden email]