imback82 commented on a change in pull request #25747: [SPARK-29039][SQL] 
centralize the catalog and table lookup logic
URL: https://github.com/apache/spark/pull/25747#discussion_r323006151
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceResolution.scala
 ##########
 @@ -164,28 +140,12 @@ case class DataSourceResolution(
         s"Delete from tables is not supported using the legacy / v1 Spark 
external catalog" +
             s" API. Identifier: $table.")
 
-    case delete: DeleteFromStatement =>
-      val relation = UnresolvedRelation(delete.tableName)
-      val aliased = delete.tableAlias.map(SubqueryAlias(_, 
relation)).getOrElse(relation)
-      DeleteFromTable(aliased, delete.condition)
+    case ShowNamespacesStatement(None, pattern) if defaultCatalog.isEmpty =>
 
 Review comment:
   OK, I may have misunderstood this discussion: 
https://github.com/apache/spark/pull/25601#discussion_r319379649 - I had an 
impression that `SHOW NAMESPACES` is supported only in v2.

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