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:ย 

Column level and table level tagging in dlt pipeline

ashraf1395
Valued Contributor

Can i set column level and table level tags programmatically in a dlt pipeline. I tried it the normal way using 
spark.sql(f"alter table and set tags (key=value)") using this syntax I found it out in one of the databricks community post. But can we do it in dlt bcz when I tried I was getting not allowed dltpython API doesn't support this.

1 ACCEPTED SOLUTION

Accepted Solutions

julie598doyle
New Contributor III

@ashraf1395 wrote:

Can i set column level and table level tags programmatically in a dlt pipeline. I tried it the normal way using 
spark.sql(f"alter table and set tags (key=value)") using this syntax I found it out in one of the databricks community post. But can we do it in dlt bcz when I tried I was getting not allowed dltpython API doesn't support this.


Hello @ashraf1395,
Currently, setting column and table level tags programmatically in a DLT pipeline using the dltpython API isn't supported. You might need to use Databricks SQL commands outside of the DLT pipeline for this task.

Best Regards,
Julie Doyle

View solution in original post

1 REPLY 1

julie598doyle
New Contributor III

@ashraf1395 wrote:

Can i set column level and table level tags programmatically in a dlt pipeline. I tried it the normal way using 
spark.sql(f"alter table and set tags (key=value)") using this syntax I found it out in one of the databricks community post. But can we do it in dlt bcz when I tried I was getting not allowed dltpython API doesn't support this.


Hello @ashraf1395,
Currently, setting column and table level tags programmatically in a DLT pipeline using the dltpython API isn't supported. You might need to use Databricks SQL commands outside of the DLT pipeline for this task.

Best Regards,
Julie Doyle

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