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

Support CASCADE option for DROP SCHEMA statement in Hive #18320

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Jul 18, 2023

Description

Relates to #17649

Release notes

(x) Release notes are required, with the following suggested text:

# Hive
* Support `CASCADE` option for `DROP SCHEMA` statement. ({issue}`18320`)

@cla-bot cla-bot bot added the cla-signed label Jul 18, 2023
@github-actions github-actions bot added tests:hive iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector labels Jul 18, 2023
@ebyhr ebyhr self-assigned this Jul 18, 2023
@ebyhr
Copy link
Member Author

ebyhr commented Jul 18, 2023

CI hit #18322

@ebyhr ebyhr requested review from findinpath and pajaks July 18, 2023 09:13
@findinpath
Copy link
Contributor

My open question from looking at this PR is how should we deal with DROP on schemas containing external tables.
I remember there was some back and forth on this matter a while ago DROP SCHEMA on Hive.

cc @findepi @alexjo2144

@ebyhr ebyhr marked this pull request as draft August 1, 2023 22:33
@ebyhr ebyhr force-pushed the ebi/hive-drop-schema-cascade branch from 7e792c6 to 177d9d6 Compare August 14, 2023 22:03
@ebyhr ebyhr force-pushed the ebi/hive-drop-schema-cascade branch from 177d9d6 to 8675ec2 Compare August 22, 2023 05:25
@ebyhr ebyhr mentioned this pull request Aug 22, 2023
9 tasks
@ebyhr ebyhr marked this pull request as ready for review August 22, 2023 05:25
@ebyhr ebyhr force-pushed the ebi/hive-drop-schema-cascade branch from 8675ec2 to 3574f71 Compare August 22, 2023 12:18
@Test
public void testUnsupportedDropSchemaCascadeWithNonHiveTable()
{
String schemaName = "test_unsupported_drop_schema_cascade_" + randomNameSuffix();
Copy link
Member

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 ?

Copy link
Member Author

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.

@ebyhr ebyhr merged commit f0536d1 into master Aug 22, 2023
@ebyhr ebyhr deleted the ebi/hive-drop-schema-cascade branch August 22, 2023 21:43
@github-actions github-actions bot added this to the 425 milestone Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

4 participants