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



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
##########
@@ -877,21 +877,27 @@ class SessionCatalog(
     isTemporaryTable(nameParts.asTableIdentifier)
   }
 
+  private def lookupTempView(name: TableIdentifier): Option[LogicalPlan] = {
+    val table = formatTableName(name.table)
+    val dbName = formatDatabaseName(name.database.getOrElse(currentDb))

Review comment:
       we don't need to check the current database, as we can't set global_tmp 
as the current database.




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