From 9fe5b5b851ff03b5837241a902e064e6f1f97db1 Mon Sep 17 00:00:00 2001 From: Han Weng Date: Fri, 4 Sep 2020 14:39:43 -0400 Subject: [PATCH] Fix index loading issue when there is a space in data file path --- .../src/main/java/io/prestosql/plugin/hive/util/IndexCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-hive/src/main/java/io/prestosql/plugin/hive/util/IndexCache.java b/presto-hive/src/main/java/io/prestosql/plugin/hive/util/IndexCache.java index a32e34d5c..151b76d37 100644 --- a/presto-hive/src/main/java/io/prestosql/plugin/hive/util/IndexCache.java +++ b/presto-hive/src/main/java/io/prestosql/plugin/hive/util/IndexCache.java @@ -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)