This is an automated email from the ASF dual-hosted git repository.

terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new b1508805707 Remove unused DistSQL label keywords (#39012)
b1508805707 is described below

commit b1508805707a53220e23290910d3699f747a8c2d
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Jul 5 22:02:19 2026 +0800

    Remove unused DistSQL label keywords (#39012)
    
    Remove LABEL, RELABEL, and UNLABEL from the shared DistSQL keyword grammar
    and the Proxy DistSQL reserved-word documentation. These tokens have no
    parser, statement, or executor support, so they should not be exposed as
    reserved RAL words.
---
 .../shardingsphere-proxy/distsql/syntax/reserved-word.cn.md  |  2 +-
 .../shardingsphere-proxy/distsql/syntax/reserved-word.en.md  |  2 +-
 parser/distsql/engine/src/main/antlr4/imports/Keyword.g4     | 12 ------------
 3 files changed, 2 insertions(+), 14 deletions(-)

diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.cn.md
index c14416202e3..f1815c743ec 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.cn.md
@@ -87,7 +87,7 @@ weight = 5
 ## RAL
 
 
`ALTER`、`READWRITE_SPLITTING`、`RULE`、`RULES`、`FROM`、`ENABLE`、`DISABLE`、`SHOW`、`COMPUTE`、`NODES`、`NODE`
-、`STATUS`、`LABEL`、`RELABEL`、`WITH`、`UNLABEL`、`AUTHORITY`、`TRANSACTION`、`SQL_PARSER`、`SQL_TRANSLATOR`、`DEFAULT`、`TYPE`
+、`STATUS`、`WITH`、`AUTHORITY`、`TRANSACTION`、`SQL_PARSER`、`SQL_TRANSLATOR`、`DEFAULT`、`TYPE`
 
、`NAME`、`PROPERTIES`、`USE_ORIGINAL_SQL_WHEN_TRANSLATING_FAILED`、`PARSE_TREE_CACHE`、`INITIAL_CAPACITY`、`MAXIMUM_SIZE`
 、`CONCURRENCY_LEVEL`、`SQL_STATEMENT_CACHE`、`CREATE`
 
、`DATABASE_VALUE`、`TABLE_VALUE`、`CLEAR`、`MIGRATION`、`STREAMING`、`READ`、`WRITE`、`WORKER_THREAD`、`BATCH_SIZE`、`SHARDING_SIZE`
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.en.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.en.md
index b7f42e62682..cceb9856265 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/reserved-word.en.md
@@ -88,7 +88,7 @@ weight = 5
 ## RAL
 
 `ALTER`, `READWRITE_SPLITTING`, `RULE`, `RULES`, `FROM`, `ENABLE`, `DISABLE`, 
`SHOW`, `COMPUTE`, `NODES`, `NODE`
-, `STATUS`, `LABEL`, `RELABEL`, `WITH`, `UNLABEL`, `AUTHORITY`, `TRANSACTION`, 
`SQL_PARSER`, `SQL_TRANSLATOR`, `DEFAULT`, `TYPE`
+, `STATUS`, `WITH`, `AUTHORITY`, `TRANSACTION`, `SQL_PARSER`, 
`SQL_TRANSLATOR`, `DEFAULT`, `TYPE`
 , `NAME`, `PROPERTIES`, `USE_ORIGINAL_SQL_WHEN_TRANSLATING_FAILED`, 
`PARSE_TREE_CACHE`, `INITIAL_CAPACITY`, `MAXIMUM_SIZE`
 , `CONCURRENCY_LEVEL`, `SQL_STATEMENT_CACHE`, `CREATE`
 , `DATABASE_VALUE`, `TABLE_VALUE`, `CLEAR`, `MIGRATION`, `STREAMING`, `READ`, 
`WRITE`, `WORKER_THREAD`, `BATCH_SIZE`
diff --git a/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4 
b/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
index abf97b440a5..51e1e58872a 100644
--- a/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
+++ b/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
@@ -183,18 +183,6 @@ MODE
     : M O D E
     ;
 
-LABEL
-    : L A B E L
-    ;
-
-RELABEL
-    : R E L A B E L
-    ;
-
-UNLABEL
-    : U N L A B E L
-    ;
-
 EXPORT
     : E X P O R T
     ;

Reply via email to