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: 

Spark Dataframe write to Delta format doesn't create a _delta_log

Ovi
New Contributor III

Hello everyone, 

I have an intermittent issue when trying to create a Delta table for the first time in Databricks: all the data gets converted into parquet at the specified location but the 

_delta_log is not created or, if created, it's left empty, thus the resulted data folder isn't considered to be a Delta table.

The command it's a basic one:

sourceDf.write

.format("delta")

.mode(SaveMode.ErrorIfExists)

.partitionBy("date")

.option("mergeSchema", "true")

.save(deltaLocation)

Thank you,

Ovi 

1 REPLY 1

jose_gonzalez
Databricks Employee
Databricks Employee

Can you list (display) the folder location "deltaLocation"? what files do you see here? have you try to use a new location for testing? do you get the same behavior?

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