drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [6/7] drill git commit: DRILL-3107: Dynamic partition pruning fails on Windows (TestDirectoryExplorerUDFs)
Date Sat, 16 May 2015 01:38:45 GMT
DRILL-3107: Dynamic partition pruning fails on Windows (TestDirectoryExplorerUDFs)


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

Branch: refs/heads/master
Commit: e877417028762c80a6f03259eee5c0edbfb981de
Parents: d03a4d6
Author: Aditya Kishore <adi@apache.org>
Authored: Fri May 15 10:13:04 2015 -0700
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Fri May 15 17:38:28 2015 -0700

----------------------------------------------------------------------
 exec/java-exec/src/main/codegen/templates/DirectoryExplorers.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/e8774170/exec/java-exec/src/main/codegen/templates/DirectoryExplorers.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/codegen/templates/DirectoryExplorers.java b/exec/java-exec/src/main/codegen/templates/DirectoryExplorers.java
index 85e0842..c97e34b 100644
--- a/exec/java-exec/src/main/codegen/templates/DirectoryExplorers.java
+++ b/exec/java-exec/src/main/codegen/templates/DirectoryExplorers.java
@@ -38,6 +38,7 @@ import javax.inject.Inject;
  */
 public class DirectoryExplorers {
   static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DirectoryExplorers.class);
+  private static final String FILE_SEPARATOR = "/";
 
   <#list [ { "name" : "\"maxdir\"", "functionClassName" : "MaxDir", "comparison" : "compareTo(curr)
< 0", "goal" : "maximum", "comparisonType" : "case-sensitive"},
            { "name" : "\"imaxdir\"", "functionClassName" : "IMaxDir", "comparison" : "compareToIgnoreCase(curr)
< 0", "goal" : "maximum", "comparisonType" : "case-insensitive"},
@@ -93,7 +94,7 @@ public class DirectoryExplorers {
           subPartitionStr = curr;
         }
       }
-      String[] subPartitionParts = subPartitionStr.split(java.io.File.separator);
+      String[] subPartitionParts = subPartitionStr.split(FILE_SEPARATOR);
       subPartitionStr = subPartitionParts[subPartitionParts.length - 1];
       byte[] result = subPartitionStr.getBytes();
       out.buffer = buffer = buffer.reallocIfNeeded(result.length);


Mime
View raw message