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

HIVE-24887: HMSHandler.getDatabase() with no capabilities to call tra… #2076

Closed
wants to merge 2 commits into from

Conversation

nrg4878
Copy link
Contributor

@nrg4878 nrg4878 commented Mar 15, 2021

…nslation (Naveen Gangam)

What changes were proposed in this pull request?

A minor change to have getDatabase() call call the translation layer even when client does not set the capabilities.
Another change is to make checkDeletePermissions in the storage based authorizer to be package visibility, much like the other check* methods on this class. This allows the subclasses to use this method as well.

Why are the changes needed?

Mostly consistency with other methods like createTable() etc.

Does this PR introduce any user-facing change?

Potentially, clients can see a different locationUri if their original database object had location from the managed warehouse. This old location will now be set as managedLocationUri.

How was this patch tested?

Manually.
Failed unit tests.

Copy link
Contributor

@yongzhi yongzhi left a comment

Choose a reason for hiding this comment

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

The change looks good.

@nrg4878
Copy link
Contributor Author

nrg4878 commented Mar 16, 2021

Thanks for the review. Closing the PR.

@nrg4878 nrg4878 closed this Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants