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: 

Changing a Delta Live Table's schema

rcostanza
New Contributor

I have a Delta Live Table whose source is a Kafka stream. One of the columns is a Decimal and I need to change its precision.

What's the correct approach to changing the DLT's schema?

Just changing the column's precision in the DLT definition will result in an error running the pipeline - the old and new columns are incompatible, even if it's the same type but a different precision. And the overwriteSchema/mergeSchema options are not valid for a Kafka stream.

My current options are:

- Deleting the DLT and letting the pipeline rebuild it

- Changing the DLT's column through ALTER TABLE

0 REPLIES 0

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