Skip to content

Return column comments in SQLAlchemy get_columns#618

Open
hashhar wants to merge 1 commit into
trinodb:masterfrom
hashhar:hashhar/581-column-comments-sqlalchemy
Open

Return column comments in SQLAlchemy get_columns#618
hashhar wants to merge 1 commit into
trinodb:masterfrom
hashhar:hashhar/581-column-comments-sqlalchemy

Conversation

@hashhar

@hashhar hashhar commented Jul 11, 2026

Copy link
Copy Markdown
Member

Description

Include the hidden information_schema.columns.comment column in the dialect's _get_columns query so that SQLAlchemy's Inspector.get_columns() exposes column comments via the ReflectedColumn comment field.

Non-technical explanation

Fixes #581

Release notes

( ) This is not user-visible or 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:

* Return column comments in SQLAlchemy get_columns. ({issue}`581`)

@cla-bot cla-bot Bot added the cla-signed label Jul 11, 2026
@hashhar hashhar force-pushed the hashhar/581-column-comments-sqlalchemy branch from 531203f to 2e53a8e Compare July 11, 2026 10:48
Include the hidden information_schema.columns.comment column in the
dialect's _get_columns query so that SQLAlchemy's
Inspector.get_columns() exposes column comments via the ReflectedColumn
comment field.
@hashhar hashhar force-pushed the hashhar/581-column-comments-sqlalchemy branch from 2e53a8e to 7dbddd0 Compare July 11, 2026 11:15

@azawlocki-sbdt azawlocki-sbdt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

[Feature Request] Retrieve column comments for SQLAlchemy Inspector#get_columns

2 participants