Skip to content

Remove listNamespaces(Namespace) convenience overload from IcebergCatalogHandler - #5227

Open
ParasdotDev wants to merge 2 commits into
apache:mainfrom
ParasdotDev:remove-listnamespaces-convenience-overload
Open

Remove listNamespaces(Namespace) convenience overload from IcebergCatalogHandler#5227
ParasdotDev wants to merge 2 commits into
apache:mainfrom
ParasdotDev:remove-listnamespaces-convenience-overload

Conversation

@ParasdotDev

Copy link
Copy Markdown
Contributor

The listNamespaces(Namespace) overload was only called from test code and diverged from the
production listNamespaces(Namespace, pageToken, pageSize) path: it skipped the isFederated
branch and pagination. This removes it and updates the 11 authz-test call sites to the
production overload.

Part of #4709.

Checklist

adutra
adutra previously approved these changes Aug 3, 2026
@github-project-automation github-project-automation Bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Aug 3, 2026
PolarisAuthorizableOperation op = PolarisAuthorizableOperation.LIST_NAMESPACES;
authorizeBasicNamespaceOperationOrThrow(op, parent);

return catalogHandlerUtils().listNamespaces(namespaceCatalog, parent);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments for catalogHandlerUtils().listNamespaces(), should we remove it as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it as well in the latest commit.

@iprithv iprithv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice clean up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants