-
Notifications
You must be signed in to change notification settings - Fork 919
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
[KYUUBI #5757][AUTHZ] Support alter path-based table for Delta Lake in Authz #5760
Conversation
val addColumnsSql = s"ALTER TABLE delta.`$path` ADD COLUMNS (age int)" | ||
interceptEndsWith[AccessControlException]( | ||
doAs(someone, sql(addColumnsSql)))( | ||
s"does not have [write] privilege on [[$path, $path/]]") |
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.
this behavior looks strange to me, add a column seems to have nothing to do with the path..
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.
This is how I understand it. The privileges of a path-based table are only read and write. alter add column modifies the schema of the table, so write privilege is required.
Thanks, merged to master |
Sorry, reverted and reopened it via conflicts |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5760 +/- ##
============================================
- Coverage 61.44% 61.39% -0.06%
Complexity 23 23
============================================
Files 607 607
Lines 35944 35944
Branches 4936 4936
============================================
- Hits 22087 22068 -19
- Misses 11477 11487 +10
- Partials 2380 2389 +9 ☔ View full report in Codecov by Sentry. |
Conflit resolved, @yaooqinn |
🔍 Description
Issue References 🔗
This pull request fixes #5757
Describe Your Solution 🔧
Add uriDescs.
Types of changes 🔖
Test Plan 🧪
Behavior Without This Pull Request ⚰️
Behavior With This Pull Request 🎉
Related Unit Tests
Checklists
📝 Author Self Checklist
📝 Committer Pre-Merge Checklist
Be nice. Be informative.