Tables in Databricks β Managed vs External
π§ A Simple Story to Beginβ
Imagine Databricks has two types of βhomesβ where your tables can live.
π Home Type 1: Databricks Takes Care of Everythingβ
You store your table and Databricks decides where to put the data files, how to organize them, and even cleans up after you.
This is a Managed Table.
π‘ Home Type 2: You Bring Your Own Folderβ
You point Databricks to a location you control in cloud storage (S3, ADLS, GCS).
Databricks stores table metadata, but the actual files live where you choose.
This is an External Table.
Thatβs the entire concept in one simple picture.
πΌ What Is a Managed Table?β
A Managed Table is one where:
- Databricks decides where the data files are stored
- Data and metadata are both controlled by Databricks
- Dropping the table deletes the data files automatically
- Storage path lives inside your workspaceβs managed storage location
π¦ Exampleβ
CREATE TABLE sales_bronze (
id INT,
amount DOUBLE
);
No LOCATION given β automatically managed.
β Benefits of Managed Tablesβ
- Easiest to use
- Automatic cleanup
- Perfect for internal Lakehouse workflows
- Delta features work smoothly