Posted by
GitBox on
Feb 03, 2021; 6:28am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-ShreelekhyaG-opened-a-new-pull-request-4080-WIP-Filter-query-having-invalid-resultr-tp105647p105964.html
ShreelekhyaG commented on a change in pull request #4080:
URL:
https://github.com/apache/carbondata/pull/4080#discussion_r569160528##########
File path: core/src/main/java/org/apache/carbondata/core/indexstore/ExtendedBlocklet.java
##########
@@ -221,7 +223,13 @@ public void deserializeFields(DataInput in, String[] locations, String tablePath
indexUniqueId = in.readUTF();
}
String filePath = getPath();
- if (filePath.startsWith(File.separator)) {
+ boolean isLocalFile = FileFactory.getCarbonFile(filePath) instanceof LocalCarbonFile;
+ // If it is external segment path, table path need not be appended to filePath
+ // Example filepath: hdfs://hacluster/opt/newsegmentpath/
+ // filePath value would start with hdfs:// or s3:// . If it is local
+ // ubuntu storage, it starts with File separator, so check if given path exists or not.
+ if ((!isLocalFile && filePath.startsWith(File.separator)) || (isLocalFile && !FileFactory
Review comment:
ok 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]