cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to add column comment on a View. Any way to update comments on multiple columns in bulk?

prasad_vaze
New Contributor III

I noticed that unlike "Alter Table" there is no "Alter View"  command to add comment on a column in the existing view. This is a regular view created on Tables (and not Materialized view).  

If the underlying table column has comment then the View inherits it but I want to update that only on View column. I am owner of the tables and View. Has anyone solved this or is this a gap in functionality or bug?

Alternatively ,Is there a way to mass apply or upload column comment on multiple columns across Tables or Views? I have a spreadsheet with column descriptions and want to mass apply /upload in Unity catalog instead of "Alter Table" command for each column

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks, @Retired_mod for the detailed reply.  Similar to "Alter Table <name> Alter column <name > comment '<>' "  option will there be an option for Views in the future? This will be handy as compared to recreating the Views.

We are currently SQL script to mass-apply ALTER statements. I was hoping any alternative such as excel import/export way

View solution in original post

3 REPLIES 3

Thanks, @Retired_mod for the detailed reply.  Similar to "Alter Table <name> Alter column <name > comment '<>' "  option will there be an option for Views in the future? This will be handy as compared to recreating the Views.

We are currently SQL script to mass-apply ALTER statements. I was hoping any alternative such as excel import/export way

Pinei
New Contributor II

RandoMcgee
New Contributor II

Comment On doesn't work with views.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now