Skip to content

HIVE-29403: Move the truncate table out of HMSHandler#6269

Merged
dengzhhu653 merged 6 commits intoapache:masterfrom
dengzhhu653:HIVE-29403
Jan 30, 2026
Merged

HIVE-29403: Move the truncate table out of HMSHandler#6269
dengzhhu653 merged 6 commits intoapache:masterfrom
dengzhhu653:HIVE-29403

Conversation

@dengzhhu653
Copy link
Member

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

@dengzhhu653
Copy link
Member Author

cc @wecharyu @saihemanth-cloudera could you take a look if have secs? thank you!

Class<? extends TBase> requestBody();
boolean supportAsync() default false;
String id() default "getId";
String cancel() default "isCancel";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id and cancel is from request, it seems a little strange to set get such annotations for handler.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when creating the handler, it knows what the request is, and how to get the async id from the request at the definition.

@sonarqubecloud
Copy link

Copy link
Contributor

@wecharyu wecharyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a minor comment.

}
}

private boolean updateTableColumnStatsInternal(ColumnStatistics colStats,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to reuse HMSHandler#updateTableColumnStatsInternal .

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comments.
The reason is it's not easy to make it as a static method, I'm agree with the reuse, filed HIVE-29407 to follow with the optimization

Copy link
Contributor

@saihemanth-cloudera saihemanth-cloudera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

<name>Hive Metastore Server</name>
<properties>
<standalone.metastore.path.to.root>..</standalone.metastore.path.to.root>
<reflections.version>0.10.2</reflections.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this could be moved to standalone-metstore/pom.xml

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will address it in the follow-ups

@dengzhhu653 dengzhhu653 merged commit 6ff00f3 into apache:master Jan 30, 2026
2 checks passed
@dengzhhu653 dengzhhu653 deleted the HIVE-29403 branch January 30, 2026 02:58
@dengzhhu653
Copy link
Member Author

Thank you @wecharyu, @saihemanth-cloudera for the review!

nareshpr pushed a commit to nareshpr/hive-1 that referenced this pull request Feb 28, 2026
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