morrySnow commented on code in PR #39542:
URL: https://github.com/apache/doris/pull/39542#discussion_r1722763743


##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -51,9 +51,14 @@ statementBase
     | materailizedViewStatement         #materailizedViewStatementAlias
     | constraintStatement               #constraintStatementAlias
     | supportedDropStatement            #supportedDropStatementAlias
+    | useStatement                      #useStatementAlias
     | unsupportedStatement              #unsupported
     ;
 
+useStatement

Review Comment:
   ```suggestion
   supportedUseStatement
   ```



##########
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4:
##########
@@ -314,8 +319,7 @@ unsupoortedUnsetStatement
     ;
 
 unsupportedUseStatement
-    : USE (catalog=identifier DOT)? database=identifier                        
      #useDatabase
-    | USE ((catalog=identifier DOT)? database=identifier)? ATSIGN 
cluster=identifier #useCloudCluster
+    : USE ((catalog=identifier DOT)? database=identifier)? ATSIGN 
cluster=identifier #useCloudCluster

Review Comment:
   could u help support `use db@cluster` too?



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to