Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13575#discussion_r66467095
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala
 ---
    @@ -488,7 +488,12 @@ private[sql] class ParquetOutputWriterFactory(
         // Custom ParquetOutputFormat that disable use of committer and writes 
to the given path
         val outputFormat = new ParquetOutputFormat[InternalRow]() {
           override def getOutputCommitter(c: TaskAttemptContext): 
OutputCommitter = { null }
    -      override def getDefaultWorkFile(c: TaskAttemptContext, ext: String): 
Path = { new Path(path) }
    +      override def getDefaultWorkFile(c: TaskAttemptContext, ext: String): 
Path = {
    +        // It has the `.parquet` extension at the end because 
(de)compression tools
    +        // such as gunzip would not be able to decompress this as the 
compression
    +        // is not applied on this whole file but on each "page" in Parquet 
format.
    +        new Path(s"$path$ext")
    +      }
    --- End diff --
    
    This patch appends an extension to the assigned `path`; new `path` would be 
like `some_path.gz.parquet`.


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