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

duanzhengqiang 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 04c092e909c support alter function and alter hierarchy in oracle 
(#19544)
04c092e909c is described below

commit 04c092e909cea94a515ca9ed70cdb3828a9920c0
Author: Trydamere <[email protected]>
AuthorDate: Tue Jul 26 14:38:21 2022 +0800

    support alter function and alter hierarchy in oracle (#19544)
---
 .../src/main/antlr4/imports/oracle/DDLStatement.g4 | 11 ++++++++
 .../sql/parser/autogen/OracleStatement.g4          |  2 ++
 .../impl/OracleDDLStatementSQLVisitor.java         | 14 +++++++++++
 .../core/database/visitor/SQLVisitorRule.java      |  2 ++
 .../statement/ddl/AlterHierarchyStatement.java     | 28 +++++++++++++++++++++
 .../oracle/ddl/OracleAlterFunctionStatement.java   | 29 ++++++++++++++++++++++
 .../oracle/ddl/OracleAlterHierarchyStatement.java  | 29 ++++++++++++++++++++++
 .../jaxb/cases/domain/SQLParserTestCases.java      |  4 +++
 .../ddl/AlterHierarchyStatementTestCase.java       | 26 +++++++++++++++++++
 .../src/main/resources/case/ddl/alter-function.xml |  1 +
 .../{alter-function.xml => alter-hierarchy.xml}    |  8 ++----
 .../resources/sql/supported/ddl/alter-function.xml |  1 +
 .../supported/ddl/alter-hierarchy.xml}             | 12 +++------
 13 files changed, 153 insertions(+), 14 deletions(-)

diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
index 8a3412f2f2f..2332e9ca096 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
@@ -3214,3 +3214,14 @@ forRefreshClause
     : FOR ((SYNCHRONOUS REFRESH USING stagingLogName) | (FAST REFRESH))
     ;
 
+alterFunction
+    : ALTER FUNCTION function (functionCompileClause | (EDITIONABLE | 
NONEDITIONABLE))
+    ;
+
+functionCompileClause
+    : COMPILE DEBUG? compilerParametersClause* (REUSE SETTINGS)?
+    ;
+
+alterHierarchy
+    : ALTER HIERARCHY hierarchyName (RENAME TO hierarchyName | COMPILE)
+    ;
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
index 2c6358e6389..dfd0df29198 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/OracleStatement.g4
@@ -118,5 +118,7 @@ execute
     | alterIndexType
     | alterMaterializedView
     | alterMaterializedViewLog
+    | alterFunction
+    | alterHierarchy
     ) SEMI_?
     ;
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/impl/OracleDDLStatementSQLVisitor.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/impl/OracleDDLStatementSQLVisitor.java
index 034e6d9d952..f021a2df1d3 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/impl/OracleDDLStatementSQLVisitor.java
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/impl/OracleDDLStatementSQLVisitor.java
@@ -33,7 +33,9 @@ import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterD
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterDefinitionClauseContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterDimensionContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterDiskgroupContext;
+import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterHierarchyContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterFlashbackArchiveContext;
+import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterFunctionContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterIndexContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterIndexTypeContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterInmemoryJoinGroupContext;
@@ -154,6 +156,8 @@ import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.Ora
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterDimensionStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterDiskgroupStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterFlashbackArchiveStatement;
+import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterFunctionStatement;
+import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterHierarchyStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterIndexStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterIndexTypeStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl.OracleAlterInmemoryJoinGroupStatement;
@@ -948,4 +952,14 @@ public final class OracleDDLStatementSQLVisitor extends 
OracleStatementSQLVisito
     public ASTNode visitAlterMaterializedViewLog(final 
AlterMaterializedViewLogContext ctx) {
         return new OracleAlterMaterializedViewLogStatement();
     }
+    
+    @Override
+    public ASTNode visitAlterFunction(final AlterFunctionContext ctx) {
+        return new OracleAlterFunctionStatement();
+    }
+    
+    @Override
+    public ASTNode visitAlterHierarchy(final AlterHierarchyContext ctx) {
+        return new OracleAlterHierarchyStatement();
+    }
 }
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
index 797948de6de..46ab40d64b8 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
@@ -592,6 +592,8 @@ public enum SQLVisitorRule {
     
     ALTER_DISKGROUP("AlterDiskgroup", SQLStatementType.DDL),
     
+    ALTER_HIERARCHY("AlterHierarchy", SQLStatementType.DDL),
+    
     ALTER_INDEX_TYPE("AlterIndexType", SQLStatementType.DDL),
     
     CURSOR("Cursor", SQLStatementType.DDL),
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterHierarchyStatement.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterHierarchyStatement.java
new file mode 100644
index 00000000000..d183aa0acab
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterHierarchyStatement.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.sql.parser.sql.common.statement.ddl;
+
+import lombok.ToString;
+import 
org.apache.shardingsphere.sql.parser.sql.common.statement.AbstractSQLStatement;
+
+/**
+ * Alter hierarchy statement.
+ */
+@ToString(callSuper = true)
+public abstract class AlterHierarchyStatement extends AbstractSQLStatement 
implements DDLStatement {
+}
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/oracle/ddl/OracleAlterFunctionStatement.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/oracle/ddl/OracleAlterFunctionStatement.java
new file mode 100644
index 00000000000..b10e42c4595
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/oracle/ddl/OracleAlterFunctionStatement.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl;
+
+import lombok.ToString;
+import 
org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterFunctionStatement;
+import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.OracleStatement;
+
+/**
+ * Oracle alter function statement.
+ */
+@ToString(callSuper = true)
+public final class OracleAlterFunctionStatement extends AlterFunctionStatement 
implements OracleStatement {
+}
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/oracle/ddl/OracleAlterHierarchyStatement.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/oracle/ddl/OracleAlterHierarchyStatement.java
new file mode 100644
index 00000000000..9b1d1463b90
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/oracle/ddl/OracleAlterHierarchyStatement.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.ddl;
+
+import lombok.ToString;
+import 
org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterHierarchyStatement;
+import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.OracleStatement;
+
+/**
+ * Oracle alter hierarchy statement.
+ */
+@ToString(callSuper = true)
+public final class OracleAlterHierarchyStatement extends 
AlterHierarchyStatement implements OracleStatement {
+}
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
index 5464dbe5ac3..8d6de2c0309 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
@@ -113,6 +113,7 @@ import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterForeignTableTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterFunctionStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterGroupStatementTestCase;
+import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterHierarchyStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterIndexStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterIndexTypeStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterInmemoryJoinGroupStatementTestCase;
@@ -1361,6 +1362,9 @@ public final class SQLParserTestCases {
     @XmlElement(name = "alter-diskgroup")
     private final List<AlterDiskgroupStatementTestCase> 
alterDiskgroupTestCases = new LinkedList<>();
     
+    @XmlElement(name = "alter-hierarchy")
+    private final List<AlterHierarchyStatementTestCase> 
alterHierarchyTestCases = new LinkedList<>();
+    
     @XmlElement(name = "alter-index-type")
     private final List<AlterIndexTypeStatementTestCase> 
alterIndexTypeTestCases = new LinkedList<>();
     
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterHierarchyStatementTestCase.java
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterHierarchyStatementTestCase.java
new file mode 100644
index 00000000000..f96d34c5a18
--- /dev/null
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterHierarchyStatementTestCase.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl;
+
+import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.SQLParserTestCase;
+
+/**
+ * Alter hierarchy statement test case.
+ */
+public final class AlterHierarchyStatementTestCase extends SQLParserTestCase {
+}
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
index 1d3bbda863a..4e38c7b6c6a 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
@@ -23,4 +23,5 @@
     <alter-function sql-case-id="alter_function_reset" />
     <alter-function sql-case-id="alter_function_set" />
     <alter-function sql-case-id="alter_function_depend_on" />
+    <alter-function sql-case-id="alter_function_compile" />
 </sql-parser-test-cases>
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-hierarchy.xml
similarity index 71%
copy from 
shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
copy to 
shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-hierarchy.xml
index 1d3bbda863a..158393a78c0 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-hierarchy.xml
@@ -17,10 +17,6 @@
   -->
 
 <sql-parser-test-cases>
-    <alter-function sql-case-id="alter_function_rename" />
-    <alter-function sql-case-id="alter_function_owner" />
-    <alter-function sql-case-id="alter_function_set_schema" />
-    <alter-function sql-case-id="alter_function_reset" />
-    <alter-function sql-case-id="alter_function_set" />
-    <alter-function sql-case-id="alter_function_depend_on" />
+    <alter-hierarchy sql-case-id="alter_hierarchy_compile" />
+    <alter-hierarchy sql-case-id="alter_hierarchy_rename" />
 </sql-parser-test-cases>
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-function.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-function.xml
index a1dff09e4e5..4aefcfb24d5 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-function.xml
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-function.xml
@@ -23,4 +23,5 @@
     <sql-case id="alter_function_set_schema" value="ALTER FUNCTION 
sqrt(integer) SET SCHEMA maths" db-types="PostgreSQL,openGauss" />
     <sql-case id="alter_function_reset" value="ALTER FUNCTION 
check_password(text) RESET search_path" db-types="PostgreSQL,openGauss" />
     <sql-case id="alter_function_depend_on" value="ALTER FUNCTION 
sqrt(integer) DEPENDS ON EXTENSION mathlib" db-types="PostgreSQL,openGauss" />
+    <sql-case id="alter_function_compile" value="ALTER FUNCTION oe.get_bal 
COMPILE;" db-types="Oracle" />
 </sql-cases>
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-hierarchy.xml
similarity index 67%
copy from 
shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
copy to 
shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-hierarchy.xml
index 1d3bbda863a..0970f85f0ed 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-function.xml
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-hierarchy.xml
@@ -16,11 +16,7 @@
   ~ limitations under the License.
   -->
 
-<sql-parser-test-cases>
-    <alter-function sql-case-id="alter_function_rename" />
-    <alter-function sql-case-id="alter_function_owner" />
-    <alter-function sql-case-id="alter_function_set_schema" />
-    <alter-function sql-case-id="alter_function_reset" />
-    <alter-function sql-case-id="alter_function_set" />
-    <alter-function sql-case-id="alter_function_depend_on" />
-</sql-parser-test-cases>
+<sql-cases>
+    <sql-case id="alter_hierarchy_compile" value="ALTER HIERARCHY product_hier 
COMPILE;" db-types="Oracle" />
+    <sql-case id="alter_hierarchy_rename" value="ALTER HIERARCHY product_hier 
RENAME TO myproduct_hier;" db-types="Oracle" />
+</sql-cases>

Reply via email to