-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
...ino-hive/src/main/java/io/trino/plugin/hive/metastore/glue/converter/GlueInputConverter.java
Show resolved
Hide resolved
cac33e3
to
b9832f9
Compare
@@ -695,7 +696,11 @@ private TableInput convertGlueTableToTableInput(com.amazonaws.services.glue.mode | |||
@Override | |||
public void commentTable(String databaseName, String tableName, Optional<String> comment) |
There was a problem hiding this comment.
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.
b9832f9
to
61bfcd5
Compare
Added a test |
Additionally, move the comment storage from a parameter to the description field.
61bfcd5
to
4e6c31e
Compare
( rebased ) |
/test-with-secrets sha=4e6c31eba052433ad3c5042bdf744e55454823eb |
The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/6695028096 |
Description
After this change the
description
field will be used to store table comments. However legacy tables with theTABLE_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: