-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-24769: Included owner information in the Table object in Hi… #1970
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
…veMetaStoreClient#getTables()
nrg4878
left a comment
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.
Changes look good to me. +1 for me.
| req.setCapabilities(version); | ||
| req.setTblNames(tables); | ||
| req.setTablesPattern(tablePattern); | ||
| if (processorCapabilities != null) |
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 for adding the processorIdentifiier.
| List<String> parameterVals = new ArrayList<>(); | ||
| appendSimpleCondition(filterBuilder, "database.name", new String[] {db}, parameterVals); | ||
| appendSimpleCondition(filterBuilder, "database.catalogName", new String[] {catName}, parameterVals); | ||
| if(tbl_names != null){ |
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.
We should add a comment to explain the strategy on how this API uses the input arguments.
|
This is been committed to master. Please close the PR. |
…veMetaStoreClient#getTables()
What changes were proposed in this pull request?
Table object has table owner information so that authorization can be done on these objects.
Why are the changes needed?
Otherwise, the "show tables" command in beeline shows all the tables in db instead of the user-owned tables. By having this info, we can filter out tables that are not owned by the user.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Local Machine, Remote cluster.