Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: List namespaces/tables when testing identifier with a dot #11991

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Jan 17, 2025

No description provided.

@@ -244,7 +244,7 @@ public void testLoadNamespaceMetadata() {

assertThatThrownBy(() -> catalog.loadNamespaceMetadata(NS))
.isInstanceOf(NoSuchNamespaceException.class)
.hasMessageStartingWith("Namespace does not exist: newdb");
.hasMessageStartingWith("Namespace does not exist: %s", NS);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is just a separate improvement to make sure that the namespace name isn't hardcoded in the expected error msg when setting NS to something else

@@ -499,6 +499,8 @@ public void testNamespaceWithDot() {
catalog.createNamespace(withDot);
assertThat(catalog.namespaceExists(withDot)).as("Namespace should exist").isTrue();

assertThat(catalog.listNamespaces()).contains(withDot);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this reproduces #11990

@nastra nastra force-pushed the tests-with-dot-in-namespace branch from d82cb1a to 0471afb Compare January 20, 2025 07:40
@nastra nastra merged commit 41b458b into apache:main Jan 20, 2025
47 checks passed
@nastra nastra deleted the tests-with-dot-in-namespace branch January 20, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants