MonkeyCanCode commented on code in PR #4046:
URL: https://github.com/apache/polaris/pull/4046#discussion_r2985190936


##########
client/python/apache_polaris/cli/command/setup.py:
##########
@@ -1196,6 +1197,22 @@ def _create_namespaces(
                 all_namespaces_to_create.add(parent_ns_name)
         sorted_namespaces = sorted(list(all_namespaces_to_create))
         for ns_name in sorted_namespaces:
+            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:

Review Comment:
   Removed the unnecessary pre-fetch and keep only the root there.  



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to