Skip to content

Add support for view column comments#13800

Merged
ebyhr merged 4 commits intotrinodb:masterfrom
findinpath:hive-view-column-comment
Oct 28, 2022
Merged

Add support for view column comments#13800
ebyhr merged 4 commits intotrinodb:masterfrom
findinpath:hive-view-column-comment

Conversation

@findinpath
Copy link
Copy Markdown
Contributor

@findinpath findinpath commented Aug 23, 2022

Description

Is this change a fix, improvement, new feature, refactoring, or other?

New feature

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Hive, Iceberg, Memory, Blackhole connectors

How would you describe this change to a non-technical end user or system administrator?

Support adding comments on view / materialized view columns.

COMMENT ON COLUMN my_view.col1 IS 'col1 description';

Related issues, pull requests, and links

Fixes #10705

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:

# Hive, Iceberg, Memory
* Add support for setting view column comments over `COMMENT ON COLUMN` sql command

@cla-bot cla-bot bot added the cla-signed label Aug 23, 2022
@findinpath findinpath force-pushed the hive-view-column-comment branch 3 times, most recently from e02893d to 029a03b Compare August 29, 2022 06:40
@findinpath findinpath changed the title Draft: Add support for view column comments Add support for view column comments Aug 29, 2022
@findinpath findinpath force-pushed the hive-view-column-comment branch 7 times, most recently from 997196c to 55057df Compare August 30, 2022 05:43
@findinpath findinpath marked this pull request as ready for review August 30, 2022 05:43
@findinpath findinpath requested a review from ebyhr August 30, 2022 12:00
@findinpath findinpath force-pushed the hive-view-column-comment branch from 55057df to 529f689 Compare August 31, 2022 08:15
@findinpath findinpath force-pushed the hive-view-column-comment branch from 529f689 to 41aaad3 Compare September 1, 2022 05:31
@findinpath findinpath force-pushed the hive-view-column-comment branch from 41aaad3 to 2547331 Compare September 9, 2022 14:04
@findinpath findinpath force-pushed the hive-view-column-comment branch from 2547331 to 0f346bf Compare October 4, 2022 05:46
@findinpath findinpath force-pushed the hive-view-column-comment branch 4 times, most recently from 17c9850 to 8c74375 Compare October 7, 2022 08:12
@findinpath findinpath requested a review from ebyhr October 7, 2022 08:12
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Oct 13, 2022

Could you separate into some commits? e.g.

  1. Add support for view column comments
  2. Support view column comments in Hive
  3. Support view column comments in Iceberg
  4. Support view column comments in Memory

@findinpath findinpath force-pushed the hive-view-column-comment branch from 4aea3d0 to 9bdf3fb Compare October 13, 2022 10:38
@findinpath
Copy link
Copy Markdown
Contributor Author

Rebasing on top of the latest changes made on 399

@findinpath findinpath force-pushed the hive-view-column-comment branch from 9bdf3fb to e609d61 Compare October 13, 2022 12:11
@findinpath findinpath force-pushed the hive-view-column-comment branch from e609d61 to 8a1d666 Compare October 13, 2022 12:14
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do we need to add @JsonProperty here? BTW the whole class is missing json annotations.

@findinpath findinpath force-pushed the hive-view-column-comment branch 3 times, most recently from dbce5aa to afb9e49 Compare October 14, 2022 12:49
@findinpath findinpath requested a review from ebyhr October 15, 2022 05:14
@findinpath findinpath force-pushed the hive-view-column-comment branch from afb9e49 to 0f87ad6 Compare October 19, 2022 13:41
@findinpath
Copy link
Copy Markdown
Contributor Author

Rebasing to fix conflicts with master.

@findinpath findinpath force-pushed the hive-view-column-comment branch from 726fcbe to 73b46ab Compare October 26, 2022 12:26
@findinpath
Copy link
Copy Markdown
Contributor Author

Rebased on master to keep the PR in sync with the latest changes from Trino.

@findinpath
Copy link
Copy Markdown
Contributor Author

CI hit #14772

@findinpath
Copy link
Copy Markdown
Contributor Author

CI hit #14441

@findinpath findinpath force-pushed the hive-view-column-comment branch from 73b46ab to 5853537 Compare October 27, 2022 07:42
@findinpath
Copy link
Copy Markdown
Contributor Author

CI hit trino-kudu

Caused by: io.trino.testing.QueryFailedException: unable to create native thread: possibly out of memory or process/resource limits reached

@ebyhr ebyhr merged commit 91c76a0 into trinodb:master Oct 28, 2022
@ebyhr ebyhr mentioned this pull request Oct 28, 2022
@github-actions github-actions bot added this to the 402 milestone Oct 28, 2022
Comment on lines +1369 to +1372
if (translateHiveViews && !isPrestoView(view)) {
throw new HiveViewNotSupportedException(viewName);
}
return view;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this looks weird -- if (! translateHiveViews && !isPrestoView) would feel more correct

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(i am changing this in #18570)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Support commenting on view columns

4 participants