Yuchen Huo created SPARK-23822:
----------------------------------

             Summary: Improve error message for Parquet schema mismatches
                 Key: SPARK-23822
                 URL: https://issues.apache.org/jira/browse/SPARK-23822
             Project: Spark
          Issue Type: Improvement
          Components: Input/Output
    Affects Versions: 2.3.0
            Reporter: Yuchen Huo


If a user attempts to read Parquet files with mismatched schemas and schema 
merging is disabled then this may result in a very confusing 
UnsupportedOperationException and ParquetDecodingException errors from Parquet.

e.g.
{code:java}
Seq(("bcd")).toDF("a").coalesce(1).write.mode("overwrite").parquet(s"$path/")
Seq((1)).toDF("a").coalesce(1).write.mode("append").parquet(s"$path/")

spark.read.parquet(s"$path/").collect()
{code}
Would result in

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to