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

    https://github.com/apache/drill/pull/519#discussion_r70536259
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/FileSystemPartitionDescriptor.java
 ---
    @@ -212,8 +223,12 @@ public TableScan 
createTableScan(List<PartitionLocation> newPartitionLocation) t
         }
     
         if (scanRel instanceof DrillScanRel) {
    -      final FileSelection newFileSelection = new FileSelection(null, 
newFiles, getBaseTableLocation());
    -      final FileGroupScan newGroupScan = 
((FileGroupScan)((DrillScanRel)scanRel).getGroupScan()).clone(newFileSelection);
    +//      final FormatSelection formatSelection = 
(FormatSelection)((DynamicDrillTable)scanRel.getTable()).getSelection();
    +      final FormatSelection formatSelection = 
(FormatSelection)table.getSelection();
    +      final FileSelection newFileSelection = new FileSelection(null, 
newFiles, getBaseTableLocation(),
    +          cacheFileRoot, formatSelection.getSelection().getDirStatus());
    +      final FileGroupScan newGroupScan =
    +          
((FileGroupScan)((DrillScanRel)scanRel).getGroupScan()).clone(newFileSelection, 
cacheFileRoot);
    --- End diff --
    
    I agree it seems redundant second parameter.  I don't recall why I needed 
it at some point  but let me see if I can get rid of it. 


---
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