cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Column comments in DLT python notebook

Richard_547342
New Contributor III

The SQL API specification in the DLT docs shows an option for adding column comments when creating a table. Is there an equivalent way to do this when creating a DLT pipeline with a python notebook? The Python API specification in the DLT docs does not seem to show this as an option.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Richard_547342
New Contributor III

Just realised this can be done in the schema definition

StructField("column1", StringType(), True, {"comment": "Column One"})

View solution in original post

2 REPLIES 2

Richard_547342
New Contributor III

Just realised this can be done in the schema definition

StructField("column1", StringType(), True, {"comment": "Column One"})

Glad, You found an answer. Therefore, I'm marking your answer as the best. Thank you for sharing the solution in our community.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.