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

    https://github.com/apache/spark/pull/13280#discussion_r67006064
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/CatalystSchemaConverter.scala
 ---
    @@ -538,6 +538,22 @@ private[parquet] class CatalystSchemaConverter(
     private[parquet] object CatalystSchemaConverter {
       val SPARK_PARQUET_SCHEMA_NAME = "spark_schema"
     
    +  // !! HACK ALERT !!
    +  //
    +  // PARQUET-363 & PARQUET-278: parquet-mr 1.8.1 doesn't allow 
constructing empty GroupType,
    +  // which prevents us to avoid selecting any columns for queries like 
`SELECT COUNT(*) FROM t`.
    +  // This issue has been fixed in parquet-mr 1.8.2-SNAPSHOT.
    +  //
    +  // To workaround this problem, here we first construct a `MessageType` 
with a single dummy
    +  // field, and then remove the field to obtain an empty `MessageType`.
    +  //
    +  // TODO Reverts this change after upgrading parquet-mr to 1.8.2+
    --- End diff --
    
    @rdblue When will Parquet 1.8.2 be released?


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to