MaxGekk commented on a change in pull request #31497:
URL: https://github.com/apache/spark/pull/31497#discussion_r571454261
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FilePartitionReader.scala
##########
@@ -72,7 +73,9 @@ class FilePartitionReader[T](readers:
Iterator[PartitionedFileReader[T]])
s"Expected: ${e.getLogicalType}, Found: ${e.getPhysicalType}"
throw new QueryExecutionException(message, e)
case e: ParquetDecodingException =>
- if (e.getMessage.contains("Can not read value at")) {
+ if (e.getCause.isInstanceOf[SparkUpgradeException]) {
+ throw e.getCause
Review comment:
In practice, this never happens since `ParquetDecodingException` always
wraps an exception there
https://github.com/apache/parquet-mr/blob/ee30b13bb5c3f6848c76641d3b93c9858e6746cb/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/InternalParquetRecordReader.java#L253-L255
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]