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

feat(hive-connector): update the "transient_lastDdlTime" property upon data modification #23134

Conversation

predator4ann
Copy link

Description

In our current setup, the 'transient_lastDdlTime' property in the metastore gets updated when data is updated through Hive. This applies to table properties in non-partitioned tables and partition properties in partitioned tables. It's critical to maintain this property when data is updated via Trino.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

…n data modification

Signed-off-by: predator4ann <yunlong.sun@hotmail.com>
Copy link

cla-bot bot commented Aug 26, 2024

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@github-actions github-actions bot added the hive Hive connector label Aug 26, 2024
Comment on lines +530 to +531
Map<String, String> parameters = updateKeyWithTimestamp(modifiedPartition.getParameters(), TRANSIENT_LAST_DDL_TIME);
modifiedPartition.setParameters(updateStatisticsParameters(parameters, basicStatistics));
Copy link
Member

Choose a reason for hiding this comment

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

Should we handle it out here ? Doesn't HMS handles it out at their end ? Can we have some test cases which validates this behavior ?

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your response. After verification, I found that there's no existing API in Metastore to accomplish this task. And I will add test cases later.

Copy link

This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua

@github-actions github-actions bot added stale and removed stale labels Sep 19, 2024
@ebyhr
Copy link
Member

ebyhr commented Oct 2, 2024

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Oct 2, 2024
Copy link

cla-bot bot commented Oct 2, 2024

The cla-bot has been summoned, and re-checked this pull request!

Copy link

This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua

@github-actions github-actions bot added the stale label Oct 24, 2024
Copy link

Closing this pull request, as it has been stale for six weeks. Feel free to re-open at any time.

@github-actions github-actions bot closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants