cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Linearizability on Delta Lake table

Torch3333
New Contributor II

Hi all,
Does Delta Lake table guarantee linearizability for the following operations on a single record:
- SELECT
- UPDATE and DELETE with condition (WHERE clauses)

If linearizability is not guaranteed, what consistency model does Delta Lake provide for these operations?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

Advika
Databricks Employee
Databricks Employee

Hello @Torch3333!

Delta Lake does not guarantee linearizability for single record operations. In Delta Lake, isolation levels ensure consistency guarantees in transactions. By default, SELECT operations follow snapshot isolation, ensuring that reads see a consistent table snapshot at the start of the transaction. UPDATE and DELETE operations use Write-Serializable isolation by default. For stricter consistency, setting delta.isolationLevel = 'Serializable' enforces transaction ordering.

For more details, refer to this documentation.

View solution in original post

1 REPLY 1

Advika
Databricks Employee
Databricks Employee

Hello @Torch3333!

Delta Lake does not guarantee linearizability for single record operations. In Delta Lake, isolation levels ensure consistency guarantees in transactions. By default, SELECT operations follow snapshot isolation, ensuring that reads see a consistent table snapshot at the start of the transaction. UPDATE and DELETE operations use Write-Serializable isolation by default. For stricter consistency, setting delta.isolationLevel = 'Serializable' enforces transaction ordering.

For more details, refer to this documentation.

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