Skip to content

Commit

Permalink
optimize DorisParser.g4 and PlanType
Browse files Browse the repository at this point in the history
  • Loading branch information
yx-keith committed Mar 3, 2025
1 parent 48b5b5e commit afc27fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
20 changes: 0 additions & 20 deletions fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -247,26 +247,6 @@ supportedAlterStatement
QUOTA (quota=identifier | INTEGER_VALUE) #alterDatabaseSetQuota
| ALTER SYSTEM RENAME COMPUTE GROUP name=identifier newName=identifier #alterSystemRenameComputeGroup
| ALTER REPOSITORY name=identifier properties=propertyClause? #alterRepository
| ALTER SYSTEM ADD BACKEND hostPorts+=STRING_LITERAL (COMMA hostPorts+=STRING_LITERAL)*
properties=propertyClause? #addBackendClause
| ALTER SYSTEM (DROP | DROPP) BACKEND hostPorts+=STRING_LITERAL
(COMMA hostPorts+=STRING_LITERAL)* #dropBackendClause
| ALTER SYSTEM DECOMMISSION BACKEND hostPorts+=STRING_LITERAL
(COMMA hostPorts+=STRING_LITERAL)* #decommissionBackendClause
| ALTER SYSTEM ADD OBSERVER hostPort=STRING_LITERAL #addObserverClause
| ALTER SYSTEM DROP OBSERVER hostPort=STRING_LITERAL #dropObserverClause
| ALTER SYSTEM ADD FOLLOWER hostPort=STRING_LITERAL #addFollowerClause
| ALTER SYSTEM DROP FOLLOWER hostPort=STRING_LITERAL #dropFollowerClause
| ALTER SYSTEM DROP ALL BROKER name=identifierOrText #dropAllBrokerClause
| ALTER SYSTEM ADD BROKER name=identifierOrText hostPorts+=STRING_LITERAL
(COMMA hostPorts+=STRING_LITERAL)* #addBrokerClause
| ALTER SYSTEM DROP BROKER name=identifierOrText hostPorts+=STRING_LITERAL
(COMMA hostPorts+=STRING_LITERAL)* #dropBrokerClause
| ALTER SYSTEM MODIFY BACKEND hostPorts+=STRING_LITERAL
(COMMA hostPorts+=STRING_LITERAL)*
SET LEFT_PAREN propertyItemList RIGHT_PAREN #modifyBackendClause
| ALTER SYSTEM MODIFY (FRONTEND | BACKEND) hostPort=STRING_LITERAL
HOSTNAME hostName=STRING_LITERAL #modifyFrontendOrBackendHostNameClause
| ALTER USER (IF EXISTS)? grantUserIdentify
passwordOption (COMMENT STRING_LITERAL)? #alterUser
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,5 @@ public enum PlanType {
ALTER_SYSTEM_DROP_ALL_BROKER,
ALTER_SYSTEM_SET_LOAD_ERRORS_HU,
ALTER_SYSTEM_MODIFY_BACKEND,
ALTER_SYSTEM_MODIFY_FRONTEND_OR_BACKEND_HOSTNAME,
ALTER_SYSTEM_RENAME_COMPUTE_GROUP
ALTER_SYSTEM_MODIFY_FRONTEND_OR_BACKEND_HOSTNAME
}

0 comments on commit afc27fe

Please sign in to comment.