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-28736:Remove DFS_URI authorization for CREATE_TABLE event with n… #5689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rtrivedi12
Copy link
Contributor

…o explicit LOCATION

What changes were proposed in this pull request?

This update ensures that DFS_URI authorization is triggered only when necessary during the CREATE TABLE command. Specifically:

For managed table creation, DFS_URI authorization is skipped if the location is under the default managed DB location.
For external table creation, DFS_URI authorization is skipped if the table location is under the default external DB location.

Why are the changes needed?

This prevents unnecessary DFS_URI authorization for tables created within default DB locations, and adding extra policies in Ranger for query execution from external clients like Spark.

Does this PR introduce any user-facing change?

Yes, After this change, users will no longer need the DFS_URI policy for tables that are created in the default managed DB location (for managed tables) or the default external DB location (for external tables).

Is the change a dependency upgrade?

No

How was this patch tested?

Changes were verified by running the CREATE table command from Spark sql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants