-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update REST Catalog impl for smoke tests and remove obsolete override for test #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,14 +186,6 @@ public void testDropTableWithMissingManifestListFile() | |
.hasMessageContaining("Table location should not exist"); | ||
} | ||
|
||
@Test | ||
@Override | ||
public void testDropTableWithMissingDataFile() | ||
{ | ||
assertThatThrownBy(super::testDropTableWithMissingDataFile) | ||
.hasMessageContaining("Table location should not exist"); | ||
} | ||
|
||
@Test | ||
Comment on lines
-191
to
189
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test was failing expectedly after the upgrade because we made the change to remove Puffin files as part of https://github.com/apache/iceberg/pull/9305/files . We used to expect this test to fail in this override because Puffin files would linger after the "DROP" and we have an assertion that validates that all files are removed so the test would fail. Now, this override is no longer needed, we expect the base testDropTableWithMissingDataFile to pass. So we can just remove the test override and rely on the base. |
||
@Override | ||
public void testDropTableWithNonExistentTableLocation() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed since the upgraded 1.5
RestSessionCatalog
will check if a view exists when performing areplace
. This effectively means the underlying catalog being used must implement ViewCatalog otherwise theloadView
call will fail since the response cannot be parsed.To fix this, I'm implementing a TestingJdbcCatalog which implements ViewCatalog. We'll need this anyways in the REST View Catalog implementation PR. trinodb#19818