drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amansinha100 <...@git.apache.org>
Subject [GitHub] drill pull request #519: DRILL-4530: Optimize partition pruning with metadat...
Date Tue, 12 Jul 2016 22:44:47 GMT
Github user amansinha100 commented on a diff in the pull request:

    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/FileSystemPartitionDescriptor.java
    @@ -212,8 +223,12 @@ public TableScan createTableScan(List<PartitionLocation> newPartitionLocation)
         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,
    --- 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message