cloud-fan commented on a change in pull request #32764:
URL: https://github.com/apache/spark/pull/32764#discussion_r648006171



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
##########
@@ -1470,6 +1470,18 @@ private[spark] object QueryCompilationErrors {
       unsupported.getMessage, cause = Some(unsupported))
   }
 
+  def v2FunctionInvalidInputTypeLengthError(
+      bound: BoundFunction,
+      args: Seq[Expression]): Throwable = {
+    new AnalysisException(s"Invalid bound function '${bound.name()}: there are 
${args.length} " +
+        s"arguments but ${bound.inputTypes().length} parameters returned from 
'inputTypes()'")
+  }
+
+  def v2FunctionCastError(bound: BoundFunction, arg: Expression, ty: 
DataType): Throwable = {

Review comment:
       this is no longer needed




-- 
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]

Reply via email to