You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/02/02 02:26:58 UTC
[GitHub] [spark] beliefer commented on a change in pull request #31316: [SPARK-33599][SQL][FOLLOWUP] Group exception messages in catalyst/analysis
beliefer commented on a change in pull request #31316:
URL: https://github.com/apache/spark/pull/31316#discussion_r568278604
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
##########
@@ -732,4 +732,20 @@ private[spark] object QueryCompilationErrors {
new InvalidUDFClassException(s"No handler for UDAF '$name'. " +
"Use sparkSession.udf.register(...) instead.")
}
+
+ def unexpectedColumnExpressionError(column: Expression): Throwable = {
+ new AnalysisException(s"[BUG] unexpected column expression: $column")
+ }
+
+ def databaseFromV1SessionCatalogNotSpecifiedError(): Throwable = {
+ new AnalysisException("Database from v1 session catalog is not specified")
+ }
+
+ def nestedDatabaseUnsupportedByV1SessionCatalogError(catalog: String): Throwable = {
+ new AnalysisException(s"Nested databases are not supported by v1 session catalog: $catalog")
+ }
+
+ def invalidCallFunctionOnUnresolvedObjectError(function: String): String = {
Review comment:
Another PR try to change this, please refer to https://github.com/apache/spark/pull/31337/files#diff-28fdb82e61b32fc0cabfbbace2353cb7849326d3fcfe40567c1ee8a51b53a519R38
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org