danhuawang commented on code in PR #11311:
URL: https://github.com/apache/gravitino/pull/11311#discussion_r3332787450


##########
clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/HierarchicalSchemaAuthorizationIT.java:
##########
@@ -327,4 +328,19 @@ public void testListSchemasUnderParentReturnsChildren() {
     assertTrue(children.contains("P:Q:R"), "listSchemas(\"P:Q\") should 
include P:Q:R");
     assertTrue(children.contains("P:Q:S"), "listSchemas(\"P:Q\") should 
include P:Q:S");
   }
+
+  @Test
+  @Order(10)
+  public void testDropParentHierarchicalSchemaWithChildFails() {
+    Catalog catalog = client.loadMetalake(METALAKE).loadCatalog(CATALOG);
+    String parent = "DROP_PARENT";
+    String child = "DROP_PARENT:CHILD";
+
+    catalog.asSchemas().createSchema(child, "child schema", new HashMap<>());

Review Comment:
   How about the test if we create schema as following:
   ```
       catalog.asSchemas().createSchema(parent, "parent schema", new 
HashMap<>());
       catalog.asSchemas().createSchema(child, "child schema", new HashMap<>());
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to