-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-19970][SQL] Table owner should be USER instead of PRINCIPAL in kerberized clusters #17311
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
Changes from all commits
9dfbf82
e8ef7d1
2959d98
5efdf8b
258ff8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -851,7 +851,7 @@ private[hive] object HiveClientImpl { | |
| hiveTable.setFields(schema.asJava) | ||
| } | ||
| hiveTable.setPartCols(partCols.asJava) | ||
| conf.foreach(c => hiveTable.setOwner(c.getUser)) | ||
| conf.foreach { _ => hiveTable.setOwner(SessionState.get().getAuthenticator().getUserName()) } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't you be using the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh. Now it makes sense why |
||
| hiveTable.setCreateTime((table.createTime / 1000).toInt) | ||
| hiveTable.setLastAccessTime((table.lastAccessTime / 1000).toInt) | ||
| table.storage.locationUri.map(CatalogUtils.URIToString(_)).foreach { loc => | ||
|
|
||
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.
Oh, I think we can remove
confhere.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.
Ah, yes, you're not using it anymore. So away it goes.
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.
Yep!
Uh oh!
There was an error while loading. Please reload this page.
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.
@vanzin . Some test cases seems to related with
confis None, it causes failures. In this PR, I'll focus on putting the correct name only with the exactly same situations of the previous existing logic.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.
I think we should pass the user name.