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

ParquetFileFormat to support arbitrary OutputCommitters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1, 2.3.0
    • SQL
    • None

    Description

      Although you can choose which committer to write dataframes as parquet data via spark.sql.parquet.output.committer.class, you get a class cast exception if this is not a org.apache.parquet.hadoop.ParquetOutputCommitter or subclass.

      This is not consistent with the docs in SQLConf, which says

      The specified class needs to be a subclass of org.apache.hadoop.mapreduce.OutputCommitter. Typically, it's also a subclass of org.apache.parquet.hadoop.ParquetOutputCommitter.

      It is simple to relax ParquetFileFormat's requirements, though if the user has set
      parquet.enable.summary-metadata=true, and set a committer which is not a ParquetOutputCommitter, then they won't see the data.

      Attachments

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: