Skip to content

Support COMMENT ON COLUMN on views#1102

Open
redox wants to merge 2 commits into
duckdb:mainfrom
altertable-ai:su/view-commment
Open

Support COMMENT ON COLUMN on views#1102
redox wants to merge 2 commits into
duckdb:mainfrom
altertable-ai:su/view-commment

Conversation

@redox
Copy link
Copy Markdown
Contributor

@redox redox commented Apr 30, 2026

This follows #1077 and add support for storing and loading column comments on DuckLake views.

Inspired by how table column tags were handled, I went for:

  • a new ducklake_view_column_tag metadata table + migration to 1.1-dev2
  • a new SET_COLUMN_COMMENT Entry::Alter
  • here and there plumbing to make it work alongside table comments

I'm not 100% sure how the X.Y-devZ migrations are supposed to be done, so looking for feedback.

Internal Ref https://github.com/duckdblabs/altertable/issues/7

redox added 2 commits May 1, 2026 00:22
This follows duckdb#1077 and add support for storing and loading per–view-column comments in DuckLake.

Inspired by how table column tags were handled, I went for:
 - a new `ducklake_view_column_tag` metadata table + migration to `1.1-dev2`
 - a new `SET_COLUMN_COMMENT` `Entry::Alter`
 - here and there plumbing to make it work alongside table comments

Along the way, I also found a bug where `DropViews` wouldn't expire the
`ducklake_tag` with `object_id = view_id` rows. Added tests in
`test/sql/comments/drop_view_expires_tags.test`.

I'm not 100% sure how the `X.Y-devZ` migrations are supposed to be done,
so looking for feebback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant