!197 Fix index loading issue when there is a space in data file path

Merge pull request !197 from Han_Weng/fix-index-special-char-in-path
This commit is contained in:
i-robot 2020-09-07 16:23:00 +08:00 committed by Gitee
commit c54e98fdeb
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class IndexCache
long lastModifiedTime = hiveSplit.getLastModifiedTime();
Path path = new Path(hiveSplit.getPath());
URI pathUri = URI.create(path.toString());
URI pathUri = URI.create(path.toString().replaceAll(" ", "%20"));
String tableFqn = catalog + "." + table;
// for each split, load indexes for each predicate (if the predicate contains an indexed column)