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


##########
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:
   I verify the case on the latest code, the issue is non-exsited.



-- 
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