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

[#1231] Fix bugs in drop MySQL schemas #1251

Conversation

github-actions[bot]
Copy link

What changes were proposed in this pull request?

  • Allow dropping a database when cascase is true.
  • If the database is not empty and cascade is false, disable the drop operation.

Why are the changes needed?

Align the logic with Gravitino EntityStore.

Fix: #1231

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

Add UT testDropMySQLDatabase

### What changes were proposed in this pull request?

- Allow dropping a database when `cascase` is `true`.
- If the database is not empty and `cascade` is `false`, disable the
drop operation.

### Why are the changes needed?

Align the logic with Gravitino EntityStore.

Fix: #1231 

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

Add UT `testDropMySQLDatabase`
@github-actions github-actions bot added cherry-pick need backport Issues that need to backport to another branch labels Dec 25, 2023
@jerryshao jerryshao closed this Dec 25, 2023
@jerryshao jerryshao reopened this Dec 25, 2023
Copy link
Author

Code Coverage Report

Overall Project 66.02% 🟢

There is no coverage information present for the Files changed

@jerryshao jerryshao merged commit ccea15c into branch-0.3 Dec 25, 2023
4 checks passed
@jerryshao jerryshao deleted the cherry-pick-branch-0.3-3ece62754647eb1b54ac7a93e6844c31df363d8f branch December 25, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick need backport Issues that need to backport to another branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants