โ02-20-2025 12:57 PM
Hey all,
We've got a bunch of business objects we created as delta live tables. these are important as that's what business users will use in dashboards, genie rooms etc. We're trying to enrich the metadata for those but the option is greyed out and I can't find the right documentation for it.
I tried to do it via SQL adding comment at the end of the column and that's not supported. What's the best way to achieve this?
We got the ability to add comments and AI assist on regular tables, just not mat views. thank you!
โ02-23-2025 04:11 PM
Hi @AnaMocanu,
As of now, although you can add comments and use AI assistance for regular tables, the same functionality is not supported for materialized views directly via SQL or the Databricks UI. Let me check if there is a way of doing this and get back.
โ06-09-2025 08:28 AM
Any answer to this yet? I have been trying to do this and found that I can use schema to change add comments to columns. However, for values that I need to initialize at build time, like _meta_data.file_path and last_modified_date as F.current_timestamp() I can not seem to find a way to add comments.
โ04-16-2025 03:55 PM
@Alberto_Umana Bumping this request - this is an important feature for our users, and it's not clear how to do it.
โ04-16-2025 04:01 PM
Thanks for bumping it @joshuat ! 100% agree, super important feature - Without good metadata we won't make this work properly for our users.
โ04-16-2025 11:13 PM - edited โ04-16-2025 11:21 PM
Hi There , You can add comment in the delta live tables either mv or streaming table in the tag - @Dlt.table()
@Dlt.table(
comment = "Delta live tables comment"
)
Here is the syntax for sql : https://docs.databricks.com/aws/en/dlt-ref/dlt-sql-ref-create-materialized-view#syntax
Here is the syntax for python : https://docs.databricks.com/aws/en/dlt-ref/dlt-python-ref-table#syntax
โ04-17-2025 06:31 AM
Thanks, but that doesn't answer the question ashraf1395. OP's question was how to create/update the field comments in the Catalog GUI.
Also note that I've populated the `comment=` syntax in my Python DLT definition, but the table description or creation logic are not populated in the GUI. Additionally, Python docs don't support field comments.
โ06-26-2025 11:24 PM - edited โ06-26-2025 11:24 PM
Solution that worked for me with materialized views created by DLT was to use the following syntax in SQL Editor in Databricks or run sql file with sql warehouse:
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now