cloud-fan commented on a change in pull request #27550: [SPARK-30799][SQL] 
CatalogAndIdentifier shouldn't return wrong namespace
URL: https://github.com/apache/spark/pull/27550#discussion_r378308430
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala
 ##########
 @@ -415,6 +416,10 @@ class ResolveSessionCatalog(
     case ShowColumnsStatement(tbl, ns) =>
       val sql = "SHOW COLUMNS"
       val v1TableName = parseV1Table(tbl, sql).asTableIdentifier
+      if (ns.isDefined && ns.get.length > 1) {
 
 Review comment:
   this check should be done earlier, otherwise it's non-sense to check if the 
database names are specified consistently.

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