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

1 REPLY 1

Richard_547342
New Contributor III

Just realised this can be done in the schema definition

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

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