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

DataFrameReader doesn't respect MERGE_SCHEMA setting for Parquet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.4.0
    • None
    • SQL

    Description

      In 1.4.0, parquet is read by DataFrameReader.parquet, when creating ParquetRelation2 object, "parameters" is hard-coded as "Map.empty[String, String]", so ParquetRelation2.shouldMergeSchemas is always true (the default value).
      In previous version, spark.sql.hive.convertMetastoreParquet.mergeSchema config is respected.
      This bug downgrade performance a lot for a folder with hundreds of parquet files and we don't want a schema merge.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Rex Xiong Rex Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: