-
Couldn't load subscription status.
- Fork 4.8k
HIVE-29280: Drop deprecated methods from Metastore server side #6148
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
base: master
Are you sure you want to change the base?
Conversation
caa17cf to
28e5ed7
Compare
28e5ed7 to
40790c3
Compare
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/AuthorizationPreEventListener.java
Outdated
Show resolved
Hide resolved
|
Can you please address the basic checkstyle sonarqube checks like:
|
|
| try { | ||
| newTbl = handler.get_table_core(tbl.getCatName(), tbl.getDbName(), tbl.getTableName()) | ||
| .deepCopy(); | ||
| GetTableRequest getTableRequest = new GetTableRequest(tbl.getDbName(), tbl.getTableName()); |
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.
minor: could we rename var to tableRequest as it looks like method name
| stmt.execute("alter table testText change column c2 c2 smallint"); | ||
| fail("Exception not thrown"); | ||
| } catch (Exception e1) { | ||
| LOG.error("message: {}", e1.getMessage(), e1); |
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.
is that useful in a test?
| try { | ||
| String[] parsedDbName = parseDbName(dbName, conf); | ||
| Table tbl = get_table_core(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tableName); | ||
| GetTableRequest getTableRequest = new GetTableRequest(parsedDbName[DB_NAME], tableName); |
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.
isn't it more convenient to keep this method and use new API, maybe just change to private
|
Could we please make the PR title and description a bit more specific? |
Sure, these are the methods that the Metastore server uses, it shouldn't affect the Hive Metastore client |



What changes were proposed in this pull request?
In RawStore, AlterHandler and IHMSHandler, we have many methods marked as deprecated even since 2.2.0. It's good to drop them off in the next major release to keep the code clean and maintainable.
This will only remove those the Metastore server uses, it shouldn't affect the client side
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?