World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#3783] improvement(test): add test 'list-all-tables' for the Hive catalog (#5710)
Yuan Chen3b08dd7a446a
diff --git a/catalogs/catalog-hive/src/test/java/org/apache/gravitino/catalog/hive/integration/test/CatalogHiveIT.java b/catalogs/catalog-hive/src/test/java/org/apache/gravitino/catalog/hive/integration/test/CatalogHiveIT.javaindex 16ca3b57f0..d9e6fe70dc 100644--- a/catalogs/catalog-hive/src/test/java/org/apache/gravitino/catalog/hive/integration/test/CatalogHiveIT.java+++ b/catalogs/catalog-hive/src/test/java/org/apache/gravitino/catalog/hive/integration/test/CatalogHiveIT.java@@ -620,6 +620,7 @@ public class CatalogHiveIT extends BaseIT {NameIdentifier icebergTable = NameIdentifier.of(schemaName, "iceberg_table");NameIdentifier paimonTable = NameIdentifier.of(schemaName, "paimon_table");NameIdentifier hudiTable = NameIdentifier.of(schemaName, "hudi_table");+ NameIdentifier hiveTable = NameIdentifier.of(schemaName, "hive_table");catalog.asTableCatalog().createTable(icebergTable, createColumns(), null, ImmutableMap.of("table_type", "ICEBERG"));@@ -629,8 +630,11 @@ public class CatalogHiveIT extends BaseIT {catalog.asTableCatalog().createTable(hudiTable, createColumns(), null, ImmutableMap.of("provider", "hudi"));+ catalog+ .asTableCatalog()+ .createTable(hiveTable, createColumns(), null, ImmutableMap.of("provider", "hive"));NameIdentifier[] tables = catalog.asTableCatalog().listTables(Namespace.of(schemaName));- Assertions.assertEquals(0, tables.length);+ Assertions.assertEquals(1, tables.length);}@Test