Skip to content

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

Merged
ebyhr merged 3 commits intotrinodb:masterfrom
nineinchnick:hive-glue-skip-archive
Oct 31, 2024
Merged

Add hive.metastore.glue.skip-archive config option#23817
ebyhr merged 3 commits intotrinodb:masterfrom
nineinchnick:hive-glue-skip-archive

Conversation

@nineinchnick
Copy link
Copy Markdown
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
Copy Markdown
Member

ebyhr commented Oct 17, 2024

/test-with-secrets sha=5d538527d13412ac48610f78f48d692a49480102

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Member

ebyhr commented Oct 25, 2024

/test-with-secrets sha=3c3d1dd43e6e3cbd87550ce038b5a288b627ac6f

@github-actions
Copy link
Copy Markdown

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

@nineinchnick
Copy link
Copy Markdown
Member Author

All green!

Jan Waś added 3 commits October 28, 2024 11:20
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
Copy Markdown
Member Author

@ebyhr can you merge this?

@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Oct 30, 2024

/test-with-secrets sha=784ed976eb38742ea38a78f8fe48e74d7294404a

@github-actions
Copy link
Copy Markdown

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
@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