cloud-fan commented on a change in pull request #25771: [SPARK-28970][SQL] 
Implement USE CATALOG/NAMESPACE for Data Source V2
URL: https://github.com/apache/spark/pull/25771#discussion_r325973243
 
 

 ##########
 File path: 
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
 ##########
 @@ -82,7 +82,9 @@ singleTableSchema
 statement
     : query                                                            
#statementDefault
     | ctes? dmlStatementNoWith                                         
#dmlStatement
-    | USE db=errorCapturingIdentifier                                  #use
+    | USE CATALOG catalog=errorCapturingIdentifier                     
#useCatalog
+    | USE namespace=multipartIdentifier
 
 Review comment:
   shall we add a command to show the current catalog and name space? e.g. 
`SHOW CURRENT CATALOG`, `SHOW CURRENT NAMESPACE`
   
   cc @rdblue @brkyvz 

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