cloud-fan commented on a change in pull request #34127:
URL: https://github.com/apache/spark/pull/34127#discussion_r725800604
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -106,7 +106,8 @@ singleTableSchema
statement
: query
#statementDefault
| ctes? dmlStatementNoWith
#dmlStatement
- | USE NAMESPACE? multipartIdentifier #use
+ | USE multipartIdentifier #use
+ | USE NAMESPACE multipartIdentifier
#useNamespace
Review comment:
some databases like DB2 support `SET SCHEMA xxx`, maybe we can change
this parser rule to `SET | USE NAMESPACE ...` in the future, to be more lenient.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]