cloud-fan commented on a change in pull request #29054:
URL: https://github.com/apache/spark/pull/29054#discussion_r496625666
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/AnalysisException.scala
##########
@@ -54,3 +54,22 @@ class AnalysisException protected[sql] (
s"$message;$lineAnnotation$positionAnnotation"
}
}
+
+/**
+ * Thrown when a query failed for invalid function argument size, usually
because
+ * a SQL function is called with the wrong number of arguments.
+ *
+ * @Since 3.1.0
+ */
+class InvalidFunctionArgumentException protected[sql](message: String)
+ extends AnalysisException(message, None, None, None, None) {
+}
+
+/**
+ * Thrown when a query failed for invalid function class, usually because a SQL
+ * function's class does not follow the rules of the UDF/UDAF class definition.
+ * @param message
+ */
+class InvalidUDFClassException protected[sql](message: String)
Review comment:
We can put it under the same package of `SessionCatalog`. This file
contains public (user-facing) classes.
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/AnalysisException.scala
##########
@@ -54,3 +54,22 @@ class AnalysisException protected[sql] (
s"$message;$lineAnnotation$positionAnnotation"
}
}
+
+/**
+ * Thrown when a query failed for invalid function argument size, usually
because
+ * a SQL function is called with the wrong number of arguments.
+ *
+ * @Since 3.1.0
+ */
+class InvalidFunctionArgumentException protected[sql](message: String)
Review comment:
This is not needed now.
----------------------------------------------------------------
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]