alessandro-nori commented on code in PR #1629: URL: https://github.com/apache/iceberg-python/pull/1629#discussion_r1954145359
########## tests/catalog/test_sql.py: ########## @@ -1158,13 +1171,13 @@ def test_list_non_existing_namespaces(catalog: SqlCatalog) -> None: def test_drop_namespace(catalog: SqlCatalog, table_schema_nested: Schema, table_identifier: Identifier) -> None: namespace = Catalog.namespace_from(table_identifier) catalog.create_namespace(namespace) - assert namespace in catalog.list_namespaces() + assert namespace[:1] in catalog.list_namespaces() Review Comment: I'm taking only the first level of the namespace. Calling `list_namespaces()` without parameters now correctly returns only the top level namespaces. So if `namespace` is a multi-level namespace, for example "db.ns1", only "db" is returned by `list_namespaces()` -- 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