11-19-2023 11:45 AM - edited 11-19-2023 11:54 AM
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
11-21-2023 08:24 AM
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
11-21-2023 08:24 AM
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
02-18-2025 10:04 AM
Use COMMENT ON
COMMENT ON | Databricks on AWS
3 weeks ago
Comment On doesn't work with views.
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now