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"})

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