-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-29498][SQL] CatalogTable to HiveTable should not change the table's ownership #26160
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
Conversation
Test build #112271 has finished for PR 26160 at commit
|
Test build #112274 has finished for PR 26160 at commit
|
IIUC, the ownership of a table only be created/changed(#26068) when we create or alter a table. SPARK-29507, We now just lack the ability to modify the owner of a table. |
I think the owner of the This is how we convert spark/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala Line 519 in 86d8325
|
Anyway, this change can keep the consistency of ownership between catalog table and hive table, so LGTM |
cc @gatorsmile |
LGTM, merging to master! |
Thank you, @cloud-fan , @wangyum . |
…he table's ownership ### What changes were proposed in this pull request? This PR backport #26160 to branch-2.4. ### Why are the changes needed? Backport from master. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? unit test Closes #26248 from wangyum/SPARK-29498-branch-2.4. Authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
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.
Thanks @wangyum. Looks fine to me too
What changes were proposed in this pull request?
CatalogTable
toHiveTable
will change the table's ownership. How to reproduce:This PR makes it set the
HiveTable
's owner toCatalogTable
's owner if it's owner is not empty when convertingCatalogTable
toHiveTable
.Why are the changes needed?
We should not change the ownership of the table when converting
CatalogTable
toHiveTable
.Does this PR introduce any user-facing change?
No
How was this patch tested?
unit test