Skip to content

Conversation

@dengzhhu653
Copy link
Member

@dengzhhu653 dengzhhu653 commented Oct 22, 2025

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?

@Aggarwal-Raghav
Copy link
Contributor

Can you please address the basic checkstyle sonarqube checks like:

  1. Double semicolon at end
  2. Unused imports
  3. Line is longer than 120 characters (found 131).

@sonarqubecloud
Copy link

try {
newTbl = handler.get_table_core(tbl.getCatName(), tbl.getDbName(), tbl.getTableName())
.deepCopy();
GetTableRequest getTableRequest = new GetTableRequest(tbl.getDbName(), tbl.getTableName());
Copy link
Member

@deniskuzZ deniskuzZ Oct 27, 2025

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);
Copy link
Member

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);
Copy link
Member

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

@deniskuzZ
Copy link
Member

Could we please make the PR title and description a bit more specific?
What criteria were used for deciding which methods to deprecate? For instance, @deprecated drop_partition_by_name hasn’t been removed.

@dengzhhu653
Copy link
Member Author

Could we please make the PR title and description a bit more specific? What criteria were used for deciding which methods to deprecate? For instance, @deprecated drop_partition_by_name hasn’t been removed.

Sure, these are the methods that the Metastore server uses, it shouldn't affect the Hive Metastore client

@dengzhhu653 dengzhhu653 changed the title HIVE-29280: Drop deprecated methods from Metastore HIVE-29280: Drop deprecated methods from Metastore server side Oct 28, 2025
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.

4 participants