Skip to content

Return an empty list for child namespaces in the REST catalog client#4905

Closed
bryanck wants to merge 3 commits intoapache:masterfrom
bryanck:master
Closed

Return an empty list for child namespaces in the REST catalog client#4905
bryanck wants to merge 3 commits intoapache:masterfrom
bryanck:master

Conversation

@bryanck
Copy link
Contributor

@bryanck bryanck commented May 30, 2022

Currently, an exception is thrown as part of a precondition check when the REST catalog client attempts to list namespaces under a parent. Some versions of Spark attempt to list child namespaces before performing a drop of the namespace, so this throws an exception and a namespace drop is not possible. This PR changes the behavior to return an empty list instead, which allows the Spark namespace drop to proceed. Given the REST catalog does not currently support nested namespaces, this seems semantically correct.

@github-actions github-actions bot added the core label May 30, 2022
@bryanck bryanck closed this May 30, 2022
@bryanck
Copy link
Contributor Author

bryanck commented May 30, 2022

Closing this, as this will be resolved when listNamespaces() is fully implemented in the REST catalog client.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant