Login  Register

[GitHub] [carbondata] Karan980 commented on a change in pull request #4017: [CARBONDATA-4022] Fix invalid path issue for segment added through alter table add segment query.

Posted by GitBox on Nov 23, 2020; 9:34am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-Karan980-opened-a-new-pull-request-4017-CARBONDATA-4022-Fix-invalid-path-issue-for-tp103317p103439.html


Karan980 commented on a change in pull request #4017:
URL: https://github.com/apache/carbondata/pull/4017#discussion_r528569260



##########
File path: core/src/main/java/org/apache/carbondata/core/indexstore/ExtendedBlocklet.java
##########
@@ -219,7 +220,13 @@ public void deserializeFields(DataInput in, String[] locations, String tablePath
     if (in.readBoolean()) {
       indexUniqueId = in.readUTF();
     }
-    setFilePath(tablePath + getPath());
+    String filePath = getPath();
+    if (filePath.startsWith(CarbonCommonConstants.FILE_SEPARATOR) ||

Review comment:
       Done




----------------------------------------------------------------
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]