---
title: What is Delta Lake in Databricks?
description: Delta Lake is the default open-source storage format for all Databricks tables, providing ACID transactions, scalable metadata handling, and unified support for batch and streaming workloads.
canonical_url: https://docs.databricks.com/aws/en/delta/
---

# What is Delta Lake in Databricks?

Delta Lake is the optimized storage layer that provides the foundation for tables in a lakehouse on Databricks. Delta Lake is [open source software](https://delta.io) that extends Parquet data files with a file-based transaction log for [ACID transactions](https://docs.databricks.com/aws/en/lakehouse/acid.md) and scalable metadata handling. Delta Lake is fully compatible with Apache Spark APIs, and was developed for tight integration with Structured Streaming, allowing you to easily use a single copy of data for both batch and streaming operations and providing incremental processing at scale.

Delta Lake is the default format for all operations on Databricks. Unless otherwise specified, all tables on Databricks are Delta Lake tables. Databricks originally developed the Delta Lake protocol and continues to actively contribute to the open source project. Many of the optimizations and products in the Databricks platform build upon the guarantees provided by Apache Spark and Delta Lake. For information on optimizations on Databricks, see [Optimization recommendations on Databricks](https://docs.databricks.com/aws/en/optimizations/index.md).

For reference information on Delta Lake SQL commands, see [Delta Lake statements](https://docs.databricks.com/aws/en/sql/language-manual/index.md#delta-lake-statements).

The Delta Lake transaction log has a well-defined open protocol that can be used by any system to read the log. See [Delta Transaction Log Protocol](https://github.com/delta-io/delta/blob/master/PROTOCOL.md).

## Getting started with Delta Lake

All tables on Databricks are Delta Lake tables by default. Whether you're using Apache Spark [DataFrames](https://docs.databricks.com/aws/en/getting-started/dataframes.md) or SQL, you get all the benefits of Delta Lake just by saving your data to the lakehouse with default settings.

For examples of basic Delta Lake operations such as creating tables, reading, writing, and updating data, see [Tutorial: Create and manage Delta Lake tables](https://docs.databricks.com/aws/en/delta/tutorial.md).

For Databricks recommendations and best practices on using Delta Lake, see [Best practices: Delta Lake](https://docs.databricks.com/aws/en/delta/best-practices.md).

## Converting and ingesting data to Delta Lake

Databricks has many features to accelerate and simplify loading data to your lakehouse.

| Method                                                                                                                                              | Description                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [Tutorial: Build an ETL pipeline with Lakeflow pipelines](https://docs.databricks.com/aws/en/getting-started/data-pipeline-get-started.md)          | Build an end-to-end ETL pipeline using Lakeflow pipelines.                                      |
| [Set up incremental ingestion from Amazon S3](https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/onboard-data.md)                    | Set up incremental ingestion from cloud storage using Auto Loader and Lakeflow pipelines.       |
| [Streaming tables](https://docs.databricks.com/aws/en/ldp/concepts/streaming-tables.md)                                                             | Use streaming tables for append-only ingestion and low-latency streaming in Lakeflow pipelines. |
| [Get started using COPY INTO to load data](https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/copy-into/index.md)                    | Load data incrementally and idempotently from cloud storage using SQL.                          |
| [What is Auto Loader?](https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/index.md)                                      | Ingest files from cloud storage incrementally as they arrive.                                   |
| [Create or modify a table using file upload](https://docs.databricks.com/aws/en/ingestion/create-or-modify-table.md)                                | Upload files and create tables from the Databricks UI.                                          |
| [Incrementally clone Parquet and Apache Iceberg tables to Delta Lake](https://docs.databricks.com/aws/en/ingestion/data-migration/clone-parquet.md) | Incrementally clone Parquet or Apache Iceberg tables to Delta Lake.                             |
| [Convert to Delta Lake](https://docs.databricks.com/aws/en/ingestion/data-migration/convert-to-delta.md)                                            | One-time conversion of Parquet or Apache Iceberg tables to Delta Lake.                          |
| [Technology partners](https://docs.databricks.com/aws/en/integrations/index.md)                                                                     | Connect third-party partners and tools to your Databricks lakehouse.                            |

For a full list of ingestion options, see [Ingest with SQL and Spark APIs](https://docs.databricks.com/aws/en/ingestion/index.md).

## <a id="updates" />Updating and modifying Delta Lake tables

Atomic transactions with Delta Lake allow you to use many options for updating data and metadata. To avoid corrupting your tables, Databricks recommends that you avoid interacting directly with data and transaction log files in Delta Lake file directories.

| Operation                                                                                                                      | Description                                                                |
| ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| [Upsert into a Delta Lake table using merge](https://docs.databricks.com/aws/en/delta/merge.md)                                | Upsert data into a Delta Lake table using the merge operation.             |
| [Selectively overwrite data with Delta Lake](https://docs.databricks.com/aws/en/delta/selective-overwrite.md)                  | Overwrite subsets of data based on filters and partitions.                 |
| [Update table schemas with schema evolution](https://docs.databricks.com/aws/en/tables/update-schema.md)                       | Manually or automatically update your table schema without rewriting data. |
| [Efficient column updates in Delta Lake](https://docs.databricks.com/aws/en/tables/features/efficient-column-updates.md)       | Add and backfill columns without rewriting unchanged columns (Beta).       |
| [Rename and drop columns with Delta Lake column mapping](https://docs.databricks.com/aws/en/tables/features/column-mapping.md) | Rename or delete columns without rewriting data.                           |

## Incremental and streaming workloads on Delta Lake

Delta Lake is optimized for Structured Streaming on Databricks. [Lakeflow pipelines](https://docs.databricks.com/aws/en/ldp/index.md) extend built-in capabilities with simplified infrastructure deployment, enhanced scaling, and managed data dependencies.

| Feature                                                                                                              | Description                                                                                              |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [Delta Lake table streaming reads and writes](https://docs.databricks.com/aws/en/structured-streaming/delta-lake.md) | Use Delta Lake tables as sources and sinks for Structured Streaming with `readStream` and `writeStream`. |
| [Use change data feed on Databricks](https://docs.databricks.com/aws/en/tables/features/change-data-feed.md)         | Track row-level changes between versions of a Delta Lake or Apache Iceberg v3 table.                     |

## Querying previous versions of a table

Each write to a Delta Lake table creates a new table version. You can use the transaction log to review modifications to your table and query previous table versions. See [Work with table history](https://docs.databricks.com/aws/en/tables/history.md).

## Delta Lake schema enhancements

Delta Lake validates schema on write, ensuring that all data written to a table matches the requirements you've set.

| Feature                                                                                                       | Description                                                                                              |
| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [Schema enforcement](https://docs.databricks.com/aws/en/tables/schema-enforcement.md)                         | Validate data quality by enforcing schema on write.                                                      |
| [Constraints on Databricks](https://docs.databricks.com/aws/en/tables/constraints.md)                         | Apply enforced integrity constraints and informational primary key, foreign key, and unique constraints. |
| [Delta Lake generated columns](https://docs.databricks.com/aws/en/tables/features/generated-columns.md)       | Automatically generate column values using user-specified functions.                                     |
| [Enrich tables with custom metadata](https://docs.databricks.com/aws/en/tables/operations/custom-metadata.md) | Add comments and custom metadata to tables and columns to enrich data discovery.                         |

## Managing files and indexing data with Delta Lake

Databricks sets many default parameters for Delta Lake that impact the size of data files and number of table versions that are retained in history. Delta Lake uses a combination of metadata parsing and physical data layout to reduce the number of files scanned to fulfill any query.

| Feature                                                                                                           | Description                                                                                       |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [Use liquid clustering for tables](https://docs.databricks.com/aws/en/tables/clustering.md)                       | Simplify data layout and optimize query performance without partitioning using liquid clustering. |
| [Data skipping](https://docs.databricks.com/aws/en/tables/data-skipping.md)                                       | Skip irrelevant files at query time using column statistics, Z-order, and optimized data layout.  |
| [Optimize data file layout](https://docs.databricks.com/aws/en/tables/operations/optimize.md)                     | Compact small data files to improve query performance.                                            |
| [Remove unused data files with vacuum](https://docs.databricks.com/aws/en/tables/operations/vacuum.md)            | Remove stale data files to reduce storage costs.                                                  |
| [Automatic row deletion with auto time-to-live](https://docs.databricks.com/aws/en/tables/operations/auto-ttl.md) | Automatically delete rows from managed tables after a configurable time period.                   |
| [Control data file size](https://docs.databricks.com/aws/en/tables/tune-file-size.md)                             | Control target file size manually or enable automatic file size tuning.                           |

## Configuring and reviewing Delta Lake settings

Databricks stores all data and metadata for Delta Lake tables in cloud object storage. Many configurations can be set at either the table level or within the Spark session. You can review the details of the Delta Lake table to discover what options are configured.

| Feature                                                                                                            | Description                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| [Review table details with describe detail](https://docs.databricks.com/aws/en/tables/operations/table-details.md) | View table configurations and metadata using the `DESCRIBE DETAIL` command. |
| [Table properties reference](https://docs.databricks.com/aws/en/tables/table-properties.md)                        | Reference list of table properties available for Delta Lake tables.         |

## Data pipelines using Delta Lake and Lakeflow pipelines

Databricks encourages users to leverage a [medallion architecture](https://docs.databricks.com/aws/en/lakehouse/medallion.md) to process data through a series of tables as data is cleaned and enriched. [Lakeflow pipelines](https://docs.databricks.com/aws/en/ldp/index.md) simplify ETL workloads through optimized execution and automated infrastructure deployment and scaling.

## Delta Lake feature compatibility

Not all Delta Lake features are in all versions of Databricks Runtime. For information about Delta Lake versioning, see [Delta Lake feature compatibility and protocols](https://docs.databricks.com/aws/en/tables/features/feature-compatibility.md).

## <a id="delta-api" />Delta Lake API documentation

For most read and write operations on Delta Lake tables, you can use [Spark SQL](https://docs.databricks.com/aws/en/sql/language-manual/index.md) or Apache Spark [DataFrame](https://docs.databricks.com/aws/en/getting-started/dataframes.md) APIs.

For Delta Lake-specific SQL statements, see [Delta Lake statements](https://docs.databricks.com/aws/en/sql/language-manual/index.md#delta-lake-statements).

Databricks ensures binary compatibility with Delta Lake APIs in Databricks Runtime. To view the Delta Lake API version packaged in each Databricks Runtime version, see the **System environment** section on the relevant article in the [Databricks Runtime release notes](https://docs.databricks.com/aws/en/release-notes/runtime/index.md). For documentation on Delta Lake APIs for Python, Scala, and Java, see the [OSS Delta Lake documentation](https://docs.delta.io/latest/delta-apidoc.html#delta-spark).
