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: 

Cannot create delta live table

rocky5
New Contributor III

I created a simple definition of delta live table smth like:

CREATE OR REFRESH STREAMING LIVE TABLE customers_silver

AS SELECT * FROM STREAM(LIVE.customers_bronze)

But I am getting an error when running a pipeline:

com.databricks.sql.transaction.tahoe.DeltaColumnMappingUnsupportedException: Changing column mapping mode from 'name' to 'none' is not supported.

When I remove that notebook (with above definition), pipeline runs correctly for 3 upcoming kafka streams (which I would like to use in above query definition). Do you know what might cause that error?

1 REPLY 1

jose_gonzalez
Moderator
Moderator

You might need to execute the following on your tables to avoid this error message

ALTER TABLE <table_name> SET TBLPROPERTIES (

'delta.minReaderVersion' = '2',

'delta.minWriterVersion' = '5',

'delta.columnMapping.mode' = 'name'

)

Docs https://docs.databricks.com/delta/delta-column-mapping.html

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!