You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by yz...@apache.org on 2026/05/15 16:57:46 UTC
(polaris) branch main updated: Ensure sub-namespace list is not error out during dry-run (#4447)
This is an automated email from the ASF dual-hosted git repository.
MonkeyCanCode pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 568a88833f Ensure sub-namespace list is not error out during dry-run (#4447)
568a88833f is described below
commit 568a88833fd0c1e4b4ee9715fa1c141407ce3505
Author: Yong Zheng <yo...@gmail.com>
AuthorDate: Fri May 15 11:57:42 2026 -0500
Ensure sub-namespace list is not error out during dry-run (#4447)
---
client/python/apache_polaris/cli/command/setup.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/client/python/apache_polaris/cli/command/setup.py b/client/python/apache_polaris/cli/command/setup.py
index 8a90dcb76a..9028534abd 100644
--- a/client/python/apache_polaris/cli/command/setup.py
+++ b/client/python/apache_polaris/cli/command/setup.py
@@ -1163,7 +1163,11 @@ class SetupCommand(Command):
parts = ns_name.split(".")
if len(parts) > 1:
parent_ns = ".".join(parts[:-1])
- if parent_ns in existing_namespaces and parent_ns not in listed_parents:
+ if (
+ not dry_run
+ and parent_ns in existing_namespaces
+ and parent_ns not in listed_parents
+ ):
try:
sub_ns = catalog_api.list_namespaces(
prefix=catalog_name, parent=UNIT_SEPARATOR.join(parts[:-1])