gengliangwang commented on code in PR #46980:
URL: https://github.com/apache/spark/pull/46980#discussion_r1640645255


##########
sql/api/src/main/scala/org/apache/spark/sql/types/UDTRegistration.scala:
##########
@@ -58,7 +58,8 @@ object UDTRegistration extends Serializable with Logging {
    */
   def register(userClass: String, udtClass: String): Unit = {
     if (udtMap.contains(userClass)) {
-      logWarning(s"Cannot register UDT for ${userClass}, which is already 
registered.")
+      logWarning(log"Cannot register UDT for ${MDC(LogKeys.USER_CLASS, 
userClass)}, " +

Review Comment:
   Let's reuse the `CLASS_NAME`



-- 
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: [email protected]

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