cloud-fan commented on a change in pull request #27537: [SPARK-30668][SQL][FOLLOWUP] Raise exception instead of silent change for new DateFormatter URL: https://github.com/apache/spark/pull/27537#discussion_r387604679
########## File path: core/src/main/scala/org/apache/spark/SparkException.scala ########## @@ -43,3 +43,9 @@ private[spark] case class SparkUserAppException(exitCode: Int) */ private[spark] case class ExecutorDeadException(message: String) extends SparkException(message) + +/** + * Exception thrown when Spark returns different result after upgrading to a new version. + */ +private[spark] class SparkUpgradeException(version: String, message: String, cause: Throwable) + extends SparkException(s"Exception for upgrading to Spark $version: $message", cause) Review comment: `You may get a different result due to the upgrading of Spark $version: $message` ---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
