From ffeb87f48047c663465d8ef2cee91a67220741b7 Mon Sep 17 00:00:00 2001 From: Zhengqiang Duan Date: Sat, 2 Dec 2023 22:30:52 +0800 Subject: [PATCH] Merge XmlNameSpacesClause to avoid antlr compile exception on local machine (#29266) --- .../oracle/src/main/antlr4/imports/oracle/DDLStatement.g4 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/DDLStatement.g4 b/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/DDLStatement.g4 index 342247da435e2..2c0f6d6b40772 100644 --- a/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/DDLStatement.g4 +++ b/parser/sql/dialect/oracle/src/main/antlr4/imports/oracle/DDLStatement.g4 @@ -520,7 +520,7 @@ groupsClause xmlIndexXmltableClause : XMLTABLE identifier (LP_ segmentAttributesClause tableCompression? inmemoryTableClause? tableProperties RP_)? - ( xmlNamespacesClause COMMA_)? xQueryString=STRING_ (PASSING identifier)? COLUMNS columnClause (COMMA_ columnClause)* + ( xmlNameSpacesClause COMMA_)? xQueryString=STRING_ (PASSING identifier)? COLUMNS columnClause (COMMA_ columnClause)* ; columnClause @@ -534,7 +534,7 @@ alterIndexGroupClause ; addColumnOptions - : (GROUP identifier)? XMLTABLE identifier (xmlNamespacesClause COMMA_)? COLUMNS columnClause (COMMA_ columnClause)* + : (GROUP identifier)? XMLTABLE identifier (xmlNameSpacesClause COMMA_)? COLUMNS columnClause (COMMA_ columnClause)* ; dropColumnOptions @@ -545,10 +545,6 @@ modifyColumnTypeOptions : (GROUP identifier)? XMLTABLE identifier COLUMNS identifier identifier (COMMA_ identifier identifier) ; -xmlNamespacesClause - : XMLNAMESPACES LP_ (STRING_ AS identifier | DEFAULT STRING_) (COMMA_ (STRING_ AS identifier | DEFAULT STRING_))* RP_ - ; - bitmapJoinIndexClause : tableName columnSortsClause_ FROM tableAlias WHERE expr ;