carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jack...@apache.org
Subject carbondata git commit: [CARBONDATA-2715][LuceneDataMap] Fix bug in search mode with lucene datamap in windows
Date Tue, 10 Jul 2018 11:29:41 GMT
Repository: carbondata
Updated Branches:
  refs/heads/master d8562e5bd -> a5039baa3


[CARBONDATA-2715][LuceneDataMap] Fix bug in search mode with lucene datamap in windows

While comparing two pathes, the file separator is different in windows,
thus causing empty pruned blocklets. This PR will ignore the file
separator

This closes #2470


Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/a5039baa
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/a5039baa
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/a5039baa

Branch: refs/heads/master
Commit: a5039baa3e72523a06428ff18e61d920b07bd320
Parents: d8562e5
Author: xuchuanyin <xuchuanyin@hust.edu.cn>
Authored: Tue Jul 10 15:34:26 2018 +0800
Committer: Jacky Li <jacky.likun@qq.com>
Committed: Tue Jul 10 19:29:26 2018 +0800

----------------------------------------------------------------------
 .../org/apache/carbondata/store/worker/SearchRequestHandler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/a5039baa/store/search/src/main/java/org/apache/carbondata/store/worker/SearchRequestHandler.java
----------------------------------------------------------------------
diff --git a/store/search/src/main/java/org/apache/carbondata/store/worker/SearchRequestHandler.java
b/store/search/src/main/java/org/apache/carbondata/store/worker/SearchRequestHandler.java
index 0a3110e..b93d80f 100644
--- a/store/search/src/main/java/org/apache/carbondata/store/worker/SearchRequestHandler.java
+++ b/store/search/src/main/java/org/apache/carbondata/store/worker/SearchRequestHandler.java
@@ -191,7 +191,7 @@ public class SearchRequestHandler {
 
     HashMap<String, ExtendedBlocklet> pathToRead = new HashMap<>();
     for (ExtendedBlocklet prunedBlocklet : prunnedBlocklets) {
-      pathToRead.put(prunedBlocklet.getFilePath(), prunedBlocklet);
+      pathToRead.put(prunedBlocklet.getFilePath().replace('\\', '/'), prunedBlocklet);
     }
 
     List<TableBlockInfo> blocks = queryModel.getTableBlockInfos();


Mime
View raw message