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


##########
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:
   Fixed by explicitly creating the parent schema before creating the child 
schema in this IT. Verified with:
   
   `./gradlew :clients:client-java:test --tests 
org.apache.gravitino.client.integration.test.authorization.HierarchicalSchemaAuthorizationIT.testDropParentHierarchicalSchemaWithChildFails
 -PskipTests -PskipDockerTests=false`



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