drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinfengni <...@git.apache.org>
Subject [GitHub] drill pull request #637: Drill 1950 : Parquet row group filter pushdown.
Date Thu, 03 Nov 2016 22:21:08 GMT
Github user jinfengni commented on a diff in the pull request:

    https://github.com/apache/drill/pull/637#discussion_r86455871
  
    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetGroupScan.java
---
    @@ -1000,6 +1053,81 @@ public long getColumnValueCount(SchemaPath column) {
     
       @Override
       public List<SchemaPath> getPartitionColumns() {
    -    return new ArrayList<>(columnTypeMap.keySet());
    +    return new ArrayList<>(partitionColTypeMap.keySet());
       }
    +
    +  public GroupScan applyFilter(LogicalExpression filterExpr, UdfUtilities udfUtilities,
    +      FunctionImplementationRegistry functionImplementationRegistry, OptionManager optionManager)
{
    +    if (fileSet.size() == 1 || ! (parquetTableMetadata instanceof Metadata.ParquetTableMetadata_v3))
{
    --- End diff --
    
    I added a isRowGroupPrunable in Metadata class, and removed "instanceof" check. 


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

Mime
View raw message