beliefer commented on a change in pull request #32880: URL: https://github.com/apache/spark/pull/32880#discussion_r651399570
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala ########## @@ -1329,4 +1330,96 @@ object QueryExecutionErrors { def illegalLocationClauseForViewPartitionError(): Throwable = { new SparkException("LOCATION clause illegal for view partition") } + + def renamePathAsExistsPathError(srcPath: Path, dstPath: Path): Throwable = { + new FileAlreadyExistsException( + s"Failed to rename $srcPath to $dstPath as destination already exists") + } + + def renameAsExistsPathError(dstPath: Path): Throwable = { + new FileAlreadyExistsException(s"Failed to rename as $dstPath already exists") + } + + def renameSrcPathNotFoundError(srcPath: Path): Throwable = { + new FileNotFoundException(s"Failed to rename as $srcPath was not found") + } + + def failedRenameTempFileError(srcPath: Path, dstPath: Path): Throwable = { + new IOException(s"Failed to rename temp file $srcPath to $dstPath as rename returned false") + } + + def legacyMetadataPathExistsError(metadataPath: Path, legacyMetadataPath: Path): Throwable = { + new SparkException( + s""" + |Error: we detected a possible problem with the location of your "_spark_metadata" + |directory and you likely need to move it before restarting this query. + | + |Earlier version of Spark incorrectly escaped paths when writing out the Review comment: Thanks you for reminder. -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org