You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2015/05/16 03:38:45 UTC

[6/7] drill git commit: DRILL-3107: Dynamic partition pruning fails on Windows (TestDirectoryExplorerUDFs)

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 <ad...@apache.org>
Authored: Fri May 15 10:13:04 2015 -0700
Committer: Jacques Nadeau <ja...@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);