HyukjinKwon commented on code in PR #47688:
URL: https://github.com/apache/spark/pull/47688#discussion_r1719260846


##########
sql/core/src/main/scala/org/apache/spark/sql/UDFRegistration.scala:
##########
@@ -183,7 +185,7 @@ class UDFRegistration private[sql] (functionRegistry: 
FunctionRegistry) extends
       println(s"""
         |/**
         | * Register a deterministic Java UDF$i instance as user-defined 
function (UDF).
-        | * @since $version
+        | * @since 1.3.0

Review Comment:
   typo



##########
sql/core/src/main/scala/org/apache/spark/sql/UDFRegistration.scala:
##########
@@ -483,15 +485,15 @@ class UDFRegistration private[sql] (functionRegistry: 
FunctionRegistry) extends
       val udaf = 
clazz.getConstructor().newInstance().asInstanceOf[UserDefinedAggregateFunction]
       register(name, udaf)
     } catch {
-      case e: ClassNotFoundException => throw 
QueryCompilationErrors.cannotLoadClassNotOnClassPathError(className)
-      case e @ (_: InstantiationException | _: IllegalArgumentException) =>
+      case _: ClassNotFoundException => throw 
QueryCompilationErrors.cannotLoadClassNotOnClassPathError(className)
+      case _: InstantiationException | _: IllegalArgumentException =>
         throw 
QueryCompilationErrors.classWithoutPublicNonArgumentConstructorError(className)
     }
   }
 
   /**
    * Register a deterministic Java UDF0 instance as user-defined function 
(UDF).
-   * @since 2.3.0
+   * @since 1.3.0

Review Comment:
   typo



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

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

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

Reply via email to