From 85fe2070e96c3de2ee9b45e42f1923b2af10203d Mon Sep 17 00:00:00 2001 From: niu niu Date: Tue, 3 Oct 2023 20:06:12 +0800 Subject: [PATCH] Add oracle alter table modifylobStorageClause parse rule --- .../antlr4/imports/oracle/DDLStatement.g4 | 2 +- .../main/resources/case/ddl/alter-table.xml | 27 +++++++++---------- .../sql/supported/ddl/alter-table.xml | 3 +++ 3 files changed, 16 insertions(+), 16 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 ae5907cbe820b..1cce32a7c6a95 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 @@ -468,7 +468,7 @@ dropSynonym ; columnClauses - : operateColumnClause+ | renameColumnClause | modifyCollectionRetrieval + : operateColumnClause+ | renameColumnClause | modifyCollectionRetrieval | modifylobStorageClause ; operateColumnClause diff --git a/test/it/parser/src/main/resources/case/ddl/alter-table.xml b/test/it/parser/src/main/resources/case/ddl/alter-table.xml index bdad8c5425244..ebd5c1114b810 100644 --- a/test/it/parser/src/main/resources/case/ddl/alter-table.xml +++ b/test/it/parser/src/main/resources/case/ddl/alter-table.xml @@ -55,11 +55,6 @@ - - - - - @@ -72,11 +67,6 @@
- - - - - @@ -1600,11 +1590,6 @@
- - - - - @@ -1712,4 +1697,16 @@ + + +
+ + + +
+ + + +
+ diff --git a/test/it/parser/src/main/resources/sql/supported/ddl/alter-table.xml b/test/it/parser/src/main/resources/sql/supported/ddl/alter-table.xml index b690d25a6a845..41974ac125257 100644 --- a/test/it/parser/src/main/resources/sql/supported/ddl/alter-table.xml +++ b/test/it/parser/src/main/resources/sql/supported/ddl/alter-table.xml @@ -228,4 +228,7 @@ + + +