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

[KYUUBI #5757][AUTHZ] Support alter path-based table for Delta Lake in Authz #5760

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

zml1206
Copy link
Contributor

@zml1206 zml1206 commented Nov 23, 2023

🔍 Description

Issue References 🔗

This pull request fixes #5757

Describe Your Solution 🔧

Add uriDescs.

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

Behavior With This Pull Request 🎉

Related Unit Tests


Checklists

📝 Author Self Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • This patch was not authored or co-authored using Generative Tooling

📝 Committer Pre-Merge Checklist

  • Pull request title is okay.
  • No license issues.
  • Milestone correctly set?
  • Test coverage is ok
  • Assignees are selected.
  • Minimum number of approvals
  • No changes are requested

Be nice. Be informative.

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/]]")
Copy link
Member

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..

Copy link
Contributor Author

@zml1206 zml1206 Nov 24, 2023

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.

@yaooqinn yaooqinn added this to the v1.9.0 milestone Nov 28, 2023
@yaooqinn
Copy link
Member

Thanks, merged to master

@yaooqinn yaooqinn closed this in e08750a Nov 28, 2023
@yaooqinn yaooqinn reopened this Nov 28, 2023
@yaooqinn
Copy link
Member

Sorry, reverted and reopened it via conflicts

@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b920836) 61.44% compared to head (1fcc353) 61.39%.
Report is 4 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@zml1206
Copy link
Contributor Author

zml1206 commented Nov 28, 2023

Conflit resolved, @yaooqinn

@cxzl25
Copy link
Contributor

cxzl25 commented Nov 28, 2023

Sorry, reverted and reopened it via conflicts

Thanks for your contribution. @zml1206

Because the master's CI fails now, I will revert this change first.

b920836

@zml1206
Copy link
Contributor Author

zml1206 commented Nov 29, 2023

Sorry, reverted and reopened it via conflicts

Thanks for your contribution. @zml1206

Because the master's CI fails now, I will revert this change first.

b920836

Already resubmitted. @cxzl25 cc @yaooqinn

@yaooqinn yaooqinn closed this in 3129934 Nov 29, 2023
@yaooqinn yaooqinn reopened this Nov 29, 2023
@yaooqinn yaooqinn merged commit 5761e83 into apache:master Nov 29, 2023
86 of 90 checks passed
@zml1206
Copy link
Contributor Author

zml1206 commented Nov 29, 2023

Thanks, @yaooqinn @cxzl25

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.

[TASK][EASY] Support alter path-based table for Delta Lake in Authz
4 participants