Github user jinfengni commented on a diff in the pull request:

    https://github.com/apache/drill/pull/519#discussion_r67709299
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/partition/PruneScanRule.java
 ---
    @@ -320,7 +377,17 @@ protected void doOnMatch(RelOptRuleCall call, Filter 
filterRel, Project projectR
           condition = condition.accept(reverseVisitor);
           pruneCondition = pruneCondition.accept(reverseVisitor);
     
    -      RelNode inputRel = descriptor.createTableScan(newPartitions);
    +      String cacheFileRoot = null;
    +      if (checkForSingle && isSinglePartition) {
    +        // if metadata cache file could potentially be used, then assign a 
proper cacheFileRoot
    +        String path = "";
    +        for (int j = 0; j <= maxIndex; j++) {
    +          path += "/" + spInfo[j];
    --- End diff --
    
    Related to Line 313, here we do not check spInfo[j] == null ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to