You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/12/28 03:02:42 UTC

[GitHub] [spark] imback82 commented on a change in pull request #26847: [SPARK-30214][SQL] A new framework to resolve v2 commands

imback82 commented on a change in pull request #26847: [SPARK-30214][SQL]  A new framework to resolve v2 commands
URL: https://github.com/apache/spark/pull/26847#discussion_r361772691
 
 

 ##########
 File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ##########
 @@ -720,6 +722,14 @@ class Analyzer(
     }
   }
 
+  case class ResolveNamespace(catalogManager: CatalogManager)
+    extends Rule[LogicalPlan] with LookupCatalog {
+    def apply(plan: LogicalPlan): LogicalPlan = plan resolveOperators {
+      case UnresolvedNamespace(CatalogAndNamespace(catalog, ns)) =>
+        ResolvedNamespace(catalog.asNamespaceCatalog, ns)
 
 Review comment:
   I have a question. We have the following in `ResolveSessionCatalog.scala`:
   ```scala
   case ShowTablesStatement(Some(CatalogAndNamespace(catalog, ns)), pattern)
     if isSessionCatalog(catalog) =>
   ```
   Do we plan to add these statements here and not resolve `UnresolvedNamespace` and let `ResolveSessionCatalog` handle them?
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org