<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to update view comment via SQL/API unless owner, but column comments work (Unity Catalog) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/148750#M52963</link>
    <description>&lt;P&gt;SQL to update View comments appeared to work&lt;/P&gt;&lt;P&gt;%sql&lt;BR /&gt;&lt;SPAN&gt;COMMENT ON VIEW &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;view&amp;gt; IS&lt;BR /&gt;&lt;SPAN&gt;'DESCRIPTION:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Test Comments.&lt;BR /&gt;&lt;SPAN&gt;| &amp;nbsp;| &amp;nbsp;|&lt;BR /&gt;&lt;SPAN&gt;| -------------- | ------------------------------------- |&lt;BR /&gt;&lt;SPAN&gt;|**Update Frequency:**|Weekly |&lt;BR /&gt;&lt;SPAN&gt;|**Data Engineer:**|Jane Doe |&lt;BR /&gt;&lt;SPAN&gt;|**Subject Matter Contact:**|Joe User |&lt;BR /&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2026 23:23:26 GMT</pubDate>
    <dc:creator>johnkw</dc:creator>
    <dc:date>2026-02-18T23:23:26Z</dc:date>
    <item>
      <title>Unable to update view comment via SQL/API unless owner, but column comments work (Unity Catalog)</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/144179#M52279</link>
      <description>&lt;P&gt;I’m working with &lt;STRONG&gt;Databricks Unity Catalog&lt;/STRONG&gt; and observing an inconsistent permission behavior for &lt;STRONG&gt;views&lt;/STRONG&gt;.&lt;/P&gt;&lt;H4&gt;Scenario&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;A view exists that was &lt;STRONG&gt;created by another user&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I have sufficient privileges on the catalog/schema/view (SELECT, MODIFY, ALL PRIVILEGES)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Query the view&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Add &lt;STRONG&gt;column comments for view&lt;/STRONG&gt; successfully using SQL editor in databricks UI and /statements api end point with&amp;nbsp;&lt;SPAN&gt;COMMENT&amp;nbsp;ON&amp;nbsp;COLUMN query&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Update the &lt;STRONG&gt;view comment via Databricks UI&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;But I &lt;STRONG&gt;cannot&lt;/STRONG&gt; update the &lt;STRONG&gt;view-level comment via SQL editor in databricks UI or API&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H4&gt;Question&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;Why Views is bound by this owner condition while table works with MODIFY permission only?&lt;/LI&gt;&lt;LI&gt;While documentation says, "Comment on column" will only work for owners but I am able to use it even when I don't own the view?&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 15 Jan 2026 18:56:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/144179#M52279</guid>
      <dc:creator>shadman140</dc:creator>
      <dc:date>2026-01-15T18:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update view comment via SQL/API unless owner, but column comments work (Unity Catalog)</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/144188#M52281</link>
      <description>&lt;P&gt;Interesting,&amp;nbsp;for UC, COMMENT ON COLUMN requires MODIFY on a table, and OWNER on a view.&amp;nbsp;If multiple people need to maintain a view, the recommended pattern is to make a group the owner and grant that group the required access to source data. Why is it designed like that: to&amp;nbsp;reduce the risk of privilege escalation via view edits. (FYI, I didn't make these decisions, this is just what I'm able to find).&lt;/P&gt;
&lt;P&gt;Note that granting ALL PRIVILEGES on a view doesn’t give you OWNER or even MANAGE.&lt;/P&gt;
&lt;P&gt;Is it possible the view is owned by a group that you belong to? You can use the following to see who owns the view:&lt;BR /&gt;&lt;SPAN class="hljs-keyword"&gt;DESCRIBE&lt;/SPAN&gt; EXTENDED catalog.schema.view_name;&amp;nbsp;&lt;SPAN class="hljs-comment"&gt;-- Owner is shown in the Detailed Table Information section.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 23:29:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/144188#M52281</guid>
      <dc:creator>stbjelcevic</dc:creator>
      <dc:date>2026-01-15T23:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to update view comment via SQL/API unless owner, but column comments work (Unity Catalog)</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/148750#M52963</link>
      <description>&lt;P&gt;SQL to update View comments appeared to work&lt;/P&gt;&lt;P&gt;%sql&lt;BR /&gt;&lt;SPAN&gt;COMMENT ON VIEW &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;view&amp;gt; IS&lt;BR /&gt;&lt;SPAN&gt;'DESCRIPTION:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Test Comments.&lt;BR /&gt;&lt;SPAN&gt;| &amp;nbsp;| &amp;nbsp;|&lt;BR /&gt;&lt;SPAN&gt;| -------------- | ------------------------------------- |&lt;BR /&gt;&lt;SPAN&gt;|**Update Frequency:**|Weekly |&lt;BR /&gt;&lt;SPAN&gt;|**Data Engineer:**|Jane Doe |&lt;BR /&gt;&lt;SPAN&gt;|**Subject Matter Contact:**|Joe User |&lt;BR /&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 23:23:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/148750#M52963</guid>
      <dc:creator>johnkw</dc:creator>
      <dc:date>2026-02-18T23:23:26Z</dc:date>
    </item>
    <item>
      <title>Hi @shadman140, This is expected behavior based on how Un...</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/150270#M53323</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/208594"&gt;@shadman140&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is expected behavior based on how Unity Catalog privileges are defined for views versus tables, though the inconsistency you noticed is understandable.&lt;/P&gt;
&lt;P&gt;THE SHORT ANSWER&lt;/P&gt;
&lt;P&gt;COMMENT ON for a view (at the view level) requires you to be the view OWNER. This is different from tables, where MODIFY privilege is sufficient.&lt;/P&gt;
&lt;P&gt;WHY VIEWS AND TABLES DIFFER&lt;/P&gt;
&lt;P&gt;In Unity Catalog, the set of grantable privileges for views is more restricted than for tables. Specifically:&lt;/P&gt;
&lt;P&gt;- Tables support: ALL PRIVILEGES, APPLY TAG, MANAGE, MODIFY, SELECT&lt;BR /&gt;
- Views support: ALL PRIVILEGES, APPLY TAG, MANAGE, SELECT&lt;/P&gt;
&lt;P&gt;Notice that views do not have a MODIFY privilege at all. The COMMENT ON statement for tables requires MODIFY (or ownership). Since views lack MODIFY, the only path to COMMENT ON a view is through ownership.&lt;/P&gt;
&lt;P&gt;This is documented here:&lt;BR /&gt;
&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-comment.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-comment.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The privilege requirements from that page:&lt;BR /&gt;
- COMMENT ON TABLE: requires MODIFY privilege on the table (or ownership)&lt;BR /&gt;
- COMMENT ON a view: requires being the OWNER of the view&lt;/P&gt;
&lt;P&gt;ABOUT COLUMN COMMENTS ON VIEWS&lt;/P&gt;
&lt;P&gt;You mentioned that column-level comments work on views even without ownership. The documentation states that commenting on a column of a view also requires ownership. If you are able to do this without being the owner, it may be that your ALL PRIVILEGES grant is being interpreted in a way that permits column-level comments but not view-level comments. This could also vary depending on the method you are using (UI vs SQL editor vs /api/2.0/sql/statements endpoint), since the UI may go through a different code path.&lt;/P&gt;
&lt;P&gt;WORKAROUND OPTIONS&lt;/P&gt;
&lt;P&gt;1. Transfer ownership to a group: If multiple users need to manage view comments, you can transfer the view ownership to a shared group using:&lt;/P&gt;
&lt;PRE&gt; ALTER VIEW catalog.schema.view_name SET OWNER TO group_name;

 Any member of that group will then be treated as an owner. The person executing this must either be a member of the target group or a metastore admin.
 https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-alter-view.html&lt;/PRE&gt;
&lt;P&gt;2. Use the UI: You mentioned that updating view comments through the Databricks UI works. If programmatic access is not strictly required, this remains a viable path.&lt;/P&gt;
&lt;P&gt;3. Run COMMENT ON as the view owner: If you have a service principal or automation account that owns the views, route the comment updates through that identity.&lt;/P&gt;
&lt;P&gt;WHY THIS DESIGN EXISTS&lt;/P&gt;
&lt;P&gt;Views in Unity Catalog are treated more like derived/logical objects rather than physical storage objects. The MODIFY privilege on tables covers data mutation (INSERT, UPDATE, DELETE) and metadata changes like comments. Since views don't hold data directly, MODIFY was not included in the view privilege model. Comment management on views falls under the broader "object definition management" category, which is reserved for owners (or those with MANAGE for certain operations, though MANAGE does not currently cover COMMENT ON).&lt;/P&gt;
&lt;P&gt;SUMMARY&lt;/P&gt;
&lt;P&gt;- COMMENT ON VIEW requires ownership (by design, since views lack MODIFY)&lt;BR /&gt;
- COMMENT ON TABLE requires MODIFY (or ownership)&lt;BR /&gt;
- Column comments on views should also require ownership per documentation&lt;BR /&gt;
- Transferring view ownership to a shared group is the recommended approach if multiple users need to manage view metadata&lt;/P&gt;
&lt;P&gt;Documentation references:&lt;BR /&gt;
- COMMENT ON: &lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-comment.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-comment.html&lt;/A&gt;&lt;BR /&gt;
- Unity Catalog privileges: &lt;A href="https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/privileges.html" target="_blank"&gt;https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/privileges.html&lt;/A&gt;&lt;BR /&gt;
- ALTER VIEW: &lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-alter-view.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-alter-view.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;* This reply used an agent system I built to research and draft this response based on the wide set of documentation I have available and previous memory. I personally review the draft for any obvious issues and for monitoring system reliability and update it when I detect any drift, but there is still a small chance that something is inaccurate, especially if you are experimenting with brand new features.&lt;/P&gt;
&lt;P&gt;If this answer resolves your question, could you mark it as "Accept as Solution"? That helps other users quickly find the correct fix.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 00:54:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-update-view-comment-via-sql-api-unless-owner-but/m-p/150270#M53323</guid>
      <dc:creator>SteveOstrowski</dc:creator>
      <dc:date>2026-03-09T00:54:40Z</dc:date>
    </item>
  </channel>
</rss>

