Add support for editing column comments on Iceberg tables#11143
Add support for editing column comments on Iceberg tables#11143findepi merged 1 commit intotrinodb:masterfrom
Conversation
There was a problem hiding this comment.
Do we need to update the comment both in the metastore and via the Iceberg updateColumnDoc?
If we don't need the metastore's comment set we can move this code up to IcebergMetadata and make it catalog agnostic.
There was a problem hiding this comment.
I inspired myself in the implementation from the updateTableComment method which does also talk to the metastore.
There was a problem hiding this comment.
I think we should remove both, as it leads to inconsistent state if the icebergTable.updateSchema().updateColumnDoc fails.
let's reconsider with a followup
1d84209 to
37de02a
Compare
There was a problem hiding this comment.
I think we should remove both, as it leads to inconsistent state if the icebergTable.updateSchema().updateColumnDoc fails.
let's reconsider with a followup
| protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior) | ||
| { | ||
| switch (connectorBehavior) { | ||
| case SUPPORTS_COMMENT_ON_COLUMN: |
There was a problem hiding this comment.
As a follow-up can you please add tests for CREATE TABLE with column comment?
see
|
Created #11161 follow-up issue for ditching metastore updates for COMMENT on Iceberg table/column. |
|
Do we need to document this in the Iceberg connector SQL support section or somewhere? If not .. I dont see any other docs for this. |
|
@mosabua there is a link towards Schema and table management document within the https://trino.io/docs/current/connector/iceberg.html#sql-support section. I think that in this case (the current change just added a minor missing functionality for the Iceberg connector) there is no need for extra documentation. If there is a need to enrich the docs I can gladly take care of it. |
|
Thanks for checking that out. I agree @findinpath .. we are good ;-) |
Description
Enable the Trino users to execute commands like the following:
Relevant connector test:
io.trino.testing.AbstractTestDistributedQueries#testCommentColumnThis change is a new feature.
This change affect only the Iceberg connector.
This PR adds the ability to edit comments for Iceberg table columns.
Related issues, pull requests, and links
PRs depending on this change: #11072
Documentation
(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
(x) Release notes entries required with the following suggested text: