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

Support altering table comments in Hive Glue catalogs #19073

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

alexjo2144
Copy link
Member

@alexjo2144 alexjo2144 commented Sep 18, 2023

Description

After this change the description field will be used to store table comments. However legacy tables with the TABLE_COMMENT parameter will still properly display their comments.

Additional context and related issues

Release notes

( ) 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.
(x) Release notes are required, with the following suggested text:

# Hive
* Support altering table comments in Hive Glue catalogs.
* Store Glue table comments in the `description` field.

@cla-bot cla-bot bot added the cla-signed label Sep 18, 2023
@github-actions github-actions bot added tests:hive hive Hive connector labels Sep 18, 2023
@alexjo2144 alexjo2144 changed the title Support altering table and column comments in Hive Glue catalogs Support altering table comments in Hive Glue catalogs Sep 18, 2023
@@ -695,7 +696,11 @@ private TableInput convertGlueTableToTableInput(com.amazonaws.services.glue.mode
@Override
public void commentTable(String databaseName, String tableName, Optional<String> comment)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a test in TestHiveGlueMetastore to ensure test coverage for this new functionality.

@alexjo2144
Copy link
Member Author

Added a test

Additionally, move the comment storage from a parameter to the
description field.
@findepi
Copy link
Member

findepi commented Oct 30, 2023

( rebased )

@findepi
Copy link
Member

findepi commented Oct 30, 2023

/test-with-secrets sha=4e6c31eba052433ad3c5042bdf744e55454823eb

@github-actions
Copy link

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

@findepi findepi merged commit 6968931 into trinodb:master Nov 6, 2023
58 checks passed
@github-actions github-actions bot added this to the 433 milestone Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed hive Hive connector
Development

Successfully merging this pull request may close these issues.

3 participants