cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Backup/Export Databricks SQL Column Comments

804082
New Contributor III

We've had users make comments on tables/columns throughout Databricks SQL using the Data Explorer UI. I'm looking for a way to backup these comments, but when I run DESCRIBE TABLE, the comment column is always null despite being non-null in Data Explorer. Is there another approach that I can use that will pull comments for all tables and columns?

2 REPLIES 2

shan_chandra
Databricks Employee
Databricks Employee

@804082  - Markdown does not render when returned by DESCRIBE statements. we can view them on the Data Explorer UI.

Reference:   https://docs.databricks.com/en/data/markdown-data-comments.html#document-data-with-markdown-comments

804082
New Contributor III

Appreciate the response. When I add a comment via "ALTER TABLE ... CHANGE COLUMN ... COMMENT ...", the comment is still shown in the Data Explorer UI. I suppose it's a one-way thing where comments on the table are visible in the Data Explorer UI but Data Explorer UI comments are not actually in the table.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group