From 6427024bcbcaa92ae2742f5bd6c986f746629223 Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Sat, 11 Apr 2026 23:08:35 -0700 Subject: [PATCH] fix: route list_namespaces through _namespace_conn for consistency list_namespaces with empty path was going through Rust (ListingDatabase) which doesn't see namespaces created via the directory namespace client. Always delegate to _namespace_conn() so create/list are consistent. Co-Authored-By: Claude Opus 4.6 (1M context) --- python/python/lancedb/db.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/python/python/lancedb/db.py b/python/python/lancedb/db.py index d586ebc93..d33790083 100644 --- a/python/python/lancedb/db.py +++ b/python/python/lancedb/db.py @@ -718,18 +718,10 @@ class LanceDBConnection(DBConnection): """ if namespace_path is None: namespace_path = [] - if namespace_path: - return self._namespace_conn().list_namespaces( - namespace_path=namespace_path, - page_token=page_token, - limit=limit, - ) - return LOOP.run( - self._conn.list_namespaces( - namespace_path=namespace_path, - page_token=page_token, - limit=limit, - ) + return self._namespace_conn().list_namespaces( + namespace_path=namespace_path, + page_token=page_token, + limit=limit, ) @override