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


##########
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetSchemasOperation.scala:
##########
@@ -49,7 +50,13 @@ private[hive] class SparkGetSchemasOperation(
     // Do not change cmdStr. It's used for Hive auditing and authorization.
     val cmdStr = s"catalog : $catalogName, schemaPattern : $schemaName"
     val logMsg = s"Listing databases '$cmdStr'"
-    logInfo(s"$logMsg with $statementId")
+
+  val catalogNameStr = if (catalogName == null) "null" else catalogName
+  val schemaNameStr = if (schemaName == null) "null" else schemaName

Review Comment:
   ```suggestion
       val catalogNameStr = if (catalogName == null) "null" else catalogName
       val schemaNameStr = if (schemaName == null) "null" else schemaName
   ```



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