-
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
Add comment columns to information_schema.tables #13705
Comments
cc: @martint We do expose this under |
There are no comments in |
Column comments are available trino/core/trino-main/src/main/java/io/trino/connector/informationschema/InformationSchemaTable.java Line 41 in 03d8e5a
Line 268 in 7f954b5
Table comments (remarks) are not available in |
The reason why trino/core/trino-main/src/main/java/io/trino/connector/informationschema/InformationSchemaTable.java Line 50 in 03d8e5a
It would be very expensive to populate this fields, hence it's not populated (all NULLs). That's why we have them in a separate table
What's the use-case which requires dbt to list tables along with the comments? |
The schema of |
Thanks for pointing out on hidden Use case is a functionality called persist_docs which saves table-level and column-level comments which are then used in dbt docs. Technically speaking, it's feasible to join From the description above it looks like that it's going to be a costly operation but the best solution from dbt-trino perspective would be to populate a |
This is no-go from perf perspective. For example, listing tables in Hive is O(1) operation (counting the HMS calls, likely the dominant factor). |
Thanks for detailed explanation. I'm good to close the issue. |
Currently, there is no way to get comments from
tables
andtables from information_schema. For instance, Snowflake exposes these comment columns in respective tables in information_schema. It would be very useful for integrations like dbt which requires it to fully support persisting docs functionality.columns
The text was updated successfully, but these errors were encountered: