Repository: incubator-drill Updated Branches: refs/heads/master 0a28365a2 -> 774a1f04c
DRILL-1185: Drill not picking up 'text' files from classpath Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/3193bd41 Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/3193bd41 Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/3193bd41 Branch: refs/heads/master Commit: 3193bd41449f9bc10fadd4ef591e1f57fba19cc3 Parents: 23ee652 Author: Hsuan-Yi Chu <hsua...@usc.edu> Authored: Mon Nov 17 17:09:00 2014 -0800 Committer: Steven Phillips <sphill...@maprtech.com> Committed: Mon Nov 24 19:26:21 2014 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/drill/exec/store/ClassPathFileSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/3193bd41/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java b/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java index d5c92f5..cab5339 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/ClassPathFileSystem.java @@ -62,7 +62,7 @@ public class ClassPathFileSystem extends FileSystem{ } private String getFileName(Path path){ - String file = path.toString(); + String file = path.toUri().getPath(); if(file.charAt(0) == '/'){ file = file.substring(1); }