dongjoon-hyun commented on a change in pull request #25372: [SPARK-28640][SQL] 
Only give warning when session catalog is not defined
URL: https://github.com/apache/spark/pull/25372#discussion_r312719909
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalog/v2/LookupCatalog.scala
 ##########
 @@ -62,6 +62,9 @@ trait LookupCatalog extends Logging {
     try {
       Some(lookupCatalog(SESSION_CATALOG_NAME))
     } catch {
+      case _: CatalogNotFoundException =>
+        logWarning("Session catalog is not defined")
+        None
 
 Review comment:
   BTW, @jzhuge . Is this all places to give a warning instead of the stacks 
traces? 
   With this PR, I still see the previous behavior.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to