-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support CASCADE
option for DROP SCHEMA
statement in Hive
#18320
Conversation
CI hit #18322 |
plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetastoreClosure.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/file/FileHiveMetastore.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive/src/test/java/io/trino/plugin/hive/BaseTestHiveOnDataLake.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive/src/test/java/io/trino/plugin/hive/BaseTestHiveOnDataLake.java
Outdated
Show resolved
Hide resolved
My open question from looking at this PR is how should we deal with DROP on schemas containing external tables. |
31f509f
to
7e792c6
Compare
.../trino-hive/src/main/java/io/trino/plugin/hive/metastore/SemiTransactionalHiveMetastore.java
Outdated
Show resolved
Hide resolved
7e792c6
to
177d9d6
Compare
177d9d6
to
8675ec2
Compare
8675ec2
to
3574f71
Compare
@Test | ||
public void testUnsupportedDropSchemaCascadeWithNonHiveTable() | ||
{ | ||
String schemaName = "test_unsupported_drop_schema_cascade_" + randomNameSuffix(); |
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.
Can we add a hive tables to ensure it is also no dropped ?
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.
The ordering when dropping objects isn't ensured.
Description
Relates to #17649
Release notes
(x) Release notes are required, with the following suggested text: