Skip to content

Conversation

@ebyhr
Copy link
Contributor

@ebyhr ebyhr commented Oct 19, 2025

TestRESTCatalog already knows its own behavior (requiresNamespaceCreate method always returns true).
This condition only makes sense for classes that don't know their behavior, such as abstract CatalogTests.

@github-actions github-actions bot added the core label Oct 19, 2025
if (requiresNamespaceCreate()) {
catalog.createNamespace(TABLE.namespace());
}
catalog.createNamespace(TABLE.namespace());
Copy link
Contributor

Choose a reason for hiding this comment

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

requiresNamespaceCreate() depends on the backing catalog that is used in testing. I'm ok removing the check but I think one reason that might justify leaving the check in is when there are subclasses of TestRESTCatalog that have requiresNamespaceCreate() return false and allow creating implicit namespaces when the table is first created.
Let's see what others think here

Copy link
Contributor

Choose a reason for hiding this comment

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

The rationale makes sense to me.

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.

3 participants