[ https://issues.apache.org/jira/browse/SPARK-8315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust updated SPARK-8315: ------------------------------------ Description: Parquet allows you to silently write out files with duplicate column names and then emits a very confusing error when trying to read the data back in: {code} Error in SQL statement: java.lang.RuntimeException: org.apache.spark.SparkException: Job aborted due to stage failure: Task 4 in stage 21.0 failed 4 times, most recent failure: Lost task 4.3 in stage 21.0 (TID 2767, ip-10-0-253-59.ec2.internal): parquet.io.ParquetDecodingException: Can not read value at 0 in block -1 in file ... {code} We should throw a better error before attempting to write out an invalid file. was: Parquet allows you to silently write out files with duplicate column names and then emits a very confusing error when trying to read the data back in: {{{ Error in SQL statement: java.lang.RuntimeException: org.apache.spark.SparkException: Job aborted due to stage failure: Task 4 in stage 21.0 failed 4 times, most recent failure: Lost task 4.3 in stage 21.0 (TID 2767, ip-10-0-253-59.ec2.internal): parquet.io.ParquetDecodingException: Can not read value at 0 in block -1 in file ... }}} We should throw a better error before attempting to write out an invalid file. > Better error when saving to parquet with duplicate columns > ---------------------------------------------------------- > > Key: SPARK-8315 > URL: https://issues.apache.org/jira/browse/SPARK-8315 > Project: Spark > Issue Type: Sub-task > Components: SQL > Reporter: Michael Armbrust > Priority: Critical > > Parquet allows you to silently write out files with duplicate column names > and then emits a very confusing error when trying to read the data back in: > {code} > Error in SQL statement: java.lang.RuntimeException: > org.apache.spark.SparkException: Job aborted due to stage failure: Task 4 in > stage 21.0 failed 4 times, most recent failure: Lost task 4.3 in stage 21.0 > (TID 2767, ip-10-0-253-59.ec2.internal): parquet.io.ParquetDecodingException: > Can not read value at 0 in block -1 in file ... > {code} > We should throw a better error before attempting to write out an invalid file. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org