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
Honored 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

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