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

Add hive.metastore.glue.skip-archive config option #23817

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

nineinchnick
Copy link
Member

@nineinchnick nineinchnick commented Oct 17, 2024

Description

When set to true, updating tables in Glue does not create an archived
version of the table. Glue tables are updated during INSERT operations,
so this option can be used to avoid reaching the limit of table
versions, when executing many such operations.

In the second commit, I also added it to the legacy v1 Glue Metastore. I don't think it's needed there, it might help when migrating Iceberg from v1 Glue to the latest one, at least to avoid binding issues in Guice modules.

Additional context and related issues

This is modeled after #14336

Release notes

## Hive
* Add support to skip archiving when committing to a table in the Glue
  metastore and the `hive.metastore.glue.skip-archive` configuration property is set
  to true. ({issue}`23817`)

@cla-bot cla-bot bot added the cla-signed label Oct 17, 2024
@github-actions github-actions bot added docs iceberg Iceberg connector hive Hive connector labels Oct 17, 2024
@ebyhr
Copy link
Member

ebyhr commented Oct 17, 2024

/test-with-secrets sha=5d538527d13412ac48610f78f48d692a49480102

Copy link

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/11384047749

@nineinchnick nineinchnick force-pushed the hive-glue-skip-archive branch from 5d53852 to 831245a Compare October 17, 2024 12:28
Copy link
Member

@anusudarsan anusudarsan left a comment

Choose a reason for hiding this comment

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

few minor comments/question otherwise lgtm

ebyhr

This comment was marked as outdated.

@nineinchnick nineinchnick force-pushed the hive-glue-skip-archive branch 2 times, most recently from f7a47e3 to 3c3d1dd Compare October 25, 2024 09:34
@ebyhr
Copy link
Member

ebyhr commented Oct 25, 2024

/test-with-secrets sha=3c3d1dd43e6e3cbd87550ce038b5a288b627ac6f

Copy link

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/11515725284

@nineinchnick
Copy link
Member Author

All green!

When set to true, updating tables in Glue does not create an archived
version of the table. Glue tables are updated during INSERT operations,
so this option can be used to avoid reaching the limit of table
versions, when executing a large number of such operations.
@nineinchnick nineinchnick force-pushed the hive-glue-skip-archive branch from 3c3d1dd to 784ed97 Compare October 28, 2024 10:22
@nineinchnick
Copy link
Member Author

@ebyhr can you merge this?

@ebyhr
Copy link
Member

ebyhr commented Oct 30, 2024

/test-with-secrets sha=784ed976eb38742ea38a78f8fe48e74d7294404a

Copy link

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/11589815299

@ebyhr ebyhr merged commit 00ccd3c into trinodb:master Oct 31, 2024
60 checks passed
@github-actions github-actions bot added this to the 465 milestone Oct 31, 2024
@nineinchnick nineinchnick deleted the hive-glue-skip-archive branch October 31, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed docs hive Hive connector iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

5 participants