dimas-b commented on code in PR #9890: URL: https://github.com/apache/iceberg/pull/9890#discussion_r1528789710
########## nessie/src/test/java/org/apache/iceberg/nessie/TestNessieCatalog.java: ########## @@ -169,4 +171,25 @@ public void testWarehouseLocationWithTrailingSlash() { + "/" + TABLE.name()); } + + @Override + @Test + public void listTablesInEmptyNamespace() { + Namespace ns = Namespace.of("ns"); + + if (requiresNamespaceCreate()) { + catalog().createNamespace(ns); + } + + TableIdentifier table1 = TableIdentifier.of(Namespace.empty(), "table_1"); + TableIdentifier table2 = TableIdentifier.of(ns, "table_2"); + + catalog().buildTable(table1, SCHEMA).create(); + catalog().buildTable(table2, SCHEMA).create(); + + // TODO this lists all available tables and deviates from the behavior in other catalogs and + // should probably be fixed + Assertions.assertThat(catalog().listTables(Namespace.empty())) Review Comment: An empty namespace is not an "entity", right? Why would we want to "create" it? That said, creating tables in the "empty" / "root" namespace should work with Nessie, IIRC. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org