Skip to content

Commit aefc7c9

Browse files
committed
added MOVE and UNDROP statements
1 parent dfc938c commit aefc7c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

jdbc-v2/src/main/antlr4/com/clickhouse/jdbc/internal/parser/ClickHouseParser.g4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ query
2222
| createStmt // DDL
2323
| describeStmt
2424
| dropStmt // DDL
25+
| undropStmt // DDL
2526
| existsStmt
2627
| explainStmt
2728
| killStmt // DDL
@@ -41,6 +42,7 @@ query
4142
| grantStmt
4243
| revokeStmt
4344
| exchangeStmt
45+
| moveStmt
4446
;
4547

4648
// CTE statement
@@ -360,6 +362,11 @@ ttlExpr
360362
: columnExpr (DELETE | TO DISK STRING_LITERAL | TO VOLUME STRING_LITERAL)?
361363
;
362364

365+
// MOVE statement
366+
moveStmt
367+
: MOVE (USER | ROLE | QUOTA | SETTINGS PROFILE | ROW POLICY) identifier TO identifier
368+
;
369+
363370
// DESCRIBE statement
364371

365372
describeStmt
@@ -377,6 +384,10 @@ dropStmt
377384
| (DETACH | DROP) (FUNCTION | NAMED COLLECTION) (IF EXISTS)? identifier clusterClause?
378385
;
379386

387+
undropStmt
388+
: UNDROP TABLE tableIdentifier uuidClause? clusterClause?
389+
;
390+
380391
// EXISTS statement
381392

382393
existsStmt

0 commit comments

Comments
 (0)