-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-27224: Enhance drop table/partition command #5851
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
base: master
Are you sure you want to change the base?
Conversation
|
7d039fd to
e955087
Compare
e955087 to
5d082e8
Compare
|
| String catName = table.getCat(); | ||
| String dbName = table.getDb(); | ||
| String tabName = table.getTable(); |
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.
nit: Should these be normalized?
| } catch (InvalidOperationException e) { | ||
| // This means there are tables of something in the database | ||
| throw new InvalidOperationException("There are still objects in the default " + | ||
| "database for catalog " + catName); |
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.
nit: should we also throw stack trace?



What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?