Impact of Overwriting Databricks SQL Tables on Versioning

Akshay_Petkar
Valued Contributor

When changes are made to a Databricks SQL table, a new version is created. If changes to the table are made using Spark or Python in a notebook and the table is overwritten, will a new version be created, or will it remain as version number 0?

Akshay Petkar

Rishabh-Pandey
Databricks MVP

When changes are made to a Databricks SQL table (Delta table) using Spark or Python in a notebook, and the table is overwritten, a new version will indeed be created. It will not remain as version number 0. Each overwrite operation increments the version number of the table.

Rishabh Pandey