Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-3131

Allow user to set parquet compression codec for writing ParquetFile in SQLContext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • SQL
    • None

    Description

      There are 4 different compression codec available for ParquetOutputFormat

      in Spark SQL it was set as a hard-coded value in

      ParquetRelation.defaultCompression

      original discuss:
      https://github.com/apache/spark/pull/195#discussion-diff-11002083

      so we need to add a new config property in SQLConf to allow user to change this compression codec, and i used similar short names syntax as described in SPARK-2953

      btw, which codec should we use as default? it was set to GZIP (https://github.com/apache/spark/pull/195/files#diff-4), but i think maybe we should change this to SNAPPY, since SNAPPY is already the default codec for shuffling in spark-core (SPARK-2469), and parquet-mr supports Snappy codec natively.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chutium Teng Qiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: