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:ย 

What is the difference between the Auto Optimize set on Spark Session to the one set on Delta Table.

Madhur
New Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Madhur,

The difference between Auto Optimize set on Spark Session and the one set on Delta Table lies in their scope and precedence.

  • Auto Optimize on Spark Session will apply to all Delta tables in the current session. It is a global configuration which takes precedence over the related table property during the current session.
  • Auto Optimize on Delta Table, applies only to the specific Delta table on which it is set. If a property is set on a table, then this is the setting that is followed by default unless overridden by a SparkSession configuration.

View solution in original post

1 REPLY 1

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Madhur,

The difference between Auto Optimize set on Spark Session and the one set on Delta Table lies in their scope and precedence.

  • Auto Optimize on Spark Session will apply to all Delta tables in the current session. It is a global configuration which takes precedence over the related table property during the current session.
  • Auto Optimize on Delta Table, applies only to the specific Delta table on which it is set. If a property is set on a table, then this is the setting that is followed by default unless overridden by a SparkSession configuration.

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