AngersZhuuuu commented on a change in pull request #34337:
URL: https://github.com/apache/spark/pull/34337#discussion_r734206219
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
##########
@@ -586,10 +586,11 @@ object QueryExecutionErrors {
new QueryExecutionException(message, e)
}
- def cannotReadParquetFilesError(e: Exception): Throwable = {
- val message = "Encounter error while reading parquet files. " +
- "One possible cause: Parquet column cannot be converted in the " +
- "corresponding files. Details: "
+ def cannotReadParquetFilesError(
+ e: Exception,
+ path: String,
+ notice: String): Throwable = {
Review comment:
Done
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
##########
@@ -586,10 +586,11 @@ object QueryExecutionErrors {
new QueryExecutionException(message, e)
}
- def cannotReadParquetFilesError(e: Exception): Throwable = {
- val message = "Encounter error while reading parquet files. " +
- "One possible cause: Parquet column cannot be converted in the " +
- "corresponding files. Details: "
+ def cannotReadParquetFilesError(
+ e: Exception,
+ path: String,
+ notice: String): Throwable = {
+ val message = s"Encounter error while reading parquet file $path. $notice
Details: "
Review comment:
Done
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]