Skip to content
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

Reduce number of calls to fetch table schema from HMS #1794

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

marton-bod
Copy link
Collaborator

@marton-bod marton-bod commented Nov 20, 2020

We can reduce the number of HMS calls by caching the table schema in the table properties during query execution.
In HiveIcebergSerDe.initialize(), this results in skipping the HMS calls in all Tez workers as well as during the query optimisation steps. In the testJoinTable() unit test, this results in a 40% reduction in schema-related HMS calls (10 -> 6).
@shardulm94 @pvary - could you please take a look when you get the chance? Thanks!

@github-actions github-actions bot added the MR label Nov 20, 2020
Copy link
Contributor

@rdblue rdblue left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I'll wait for other reviewers with more knowledge of Hive to weigh in. Thanks, @marton-bod!

@pvary
Copy link
Contributor

pvary commented Nov 23, 2020

This is not guaranteed to work in future versions of Hive but definitely will not hurt and helps the performance with the current versions.
So +1 (non-binding)

@rdblue rdblue merged commit 0d68114 into apache:master Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants