ajantha-bhat commented on code in PR #5510:
URL: https://github.com/apache/iceberg/pull/5510#discussion_r944357848
##########
hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveCatalog.java:
##########
@@ -458,6 +460,36 @@ public void testDropNamespace() throws TException {
});
}
+ @Test
+ public void testDropTable() throws TException {
+ Namespace namespace = Namespace.of("dbname_drop");
+ TableIdentifier identifier = TableIdentifier.of(namespace, "table");
+ Schema tableSchema =
+ new Schema(Types.StructType.of(required(1, "id",
Types.LongType.get())).fields());
+ catalog.createNamespace(namespace, meta);
+ catalog.createTable(identifier, tableSchema);
+ TableOperations ops = catalog.newTableOps(identifier);
+
+ Assert.assertTrue(catalog.dropTable(identifier, true));
Review Comment:
nit: I feel no need to test line 473 to 480
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]