Skip to content

Conversation

@chenjian2664
Copy link
Contributor

Description

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Nov 28, 2025
throw e;
}
assertUpdate("DROP TABLE " + oldTable);
throw e;
Copy link
Member

Choose a reason for hiding this comment

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

I think we should change more. The table will remain if the following assertion with SHOW TABLES or SELECT failed for some reason.

Same for testRenameTableAcrossSchemas.

@@ -448,9 +448,8 @@ public void testRenameTable()
assertUpdate("ALTER TABLE " + oldTable + " RENAME TO " + newTable);
}
catch (Throwable e) {
try (AutoCloseable ignore = () -> assertUpdate("DROP TABLE " + oldTable)) {
throw e;
Copy link
Member

Choose a reason for hiding this comment

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

The point here was to preserve e even if the DROP fails

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

Development

Successfully merging this pull request may close these issues.

3 participants