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

    https://github.com/apache/spark/pull/13371#discussion_r66308569
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala
 ---
    @@ -344,6 +344,11 @@ private[sql] class ParquetFileFormat
           val hadoopAttemptContext =
             new TaskAttemptContextImpl(broadcastedHadoopConf.value.value, 
attemptId)
     
    +      // Try to push down filters when filter push-down is enabled.
    +      // Notice: This push-down is RowGroups level, not individual records.
    --- End diff --
    
    Besides, as we use the metadata in merged schema to figure out if a field 
is optional (i.e. not in all parquet files) or not to decide to push down a 
filter regarding it, this info has been ignored in `FileSourceStrategy` now. 
Without the fixing in this change, the push-down row-group level filtering will 
be failed due to not existing field in parquet file.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to