Sub topic 1
From Data Lakes and Warehouses to the Lakehouse
Prerequisites
This chapter assumes you know basic SQL, such as SELECT, JOIN, and GROUP BY. You should also understand that a data lake stores files in cloud object storage, while a data warehouse provides structured tables and fast analytical queries.
From Data Lakes and Warehouses to the Lakehouse
A data lake is flexible and inexpensive. It can store raw files such as JSON, CSV, images, and logs. However, lakes often lack reliable transactions, consistent schemas, and simple governance.
A data warehouse provides managed tables, SQL performance, and strong controls. Traditionally, organizations copied data from the lake into the warehouse. This created duplicated data, separate tools, and delayed results.
A lakehouse combines these approaches. It keeps data in open cloud storage but adds warehouse capabilities, such as ACID transactions, schema enforcement, version history, and SQL analytics. Databricks builds its platform around this architecture.
What Databricks Provides
Databricks provides a managed environment for storing, processing, querying, governing, and scheduling data. Its main pieces work together:
- A workspace for collaborative development.
- Compute resources for running code.
- Apache Spark for distributed data processing.
- Delta Lake for reliable table storage.
- Unity Catalog for names, permissions, and auditing.
- Jobs for scheduled and dependent tasks.
The platform can run SQL, Python, Scala, and other workloads against the same governed data.
Control Plane and Compute Plane
Databricks separates management from execution.
The control plane contains Databricks-managed services. It handles workspace metadata, configuration, notebooks, jobs, permissions, and the user interface.
The compute plane contains the resources that execute queries and code. Depending on the configuration, these resources run in the cloud account or service environment associated with the workspace. Data processing happens on compute, not in the browser.
What a Workspace Is
A workspace is an environment where a team develops and operates data workloads. It contains notebooks, files, queries, dashboards, jobs, and connections to governed data. A workspace is not the data itself. It provides tools for accessing data stored in cloud storage and registered through Unity Catalog.
Finding Your Way Around the Workspace
Use the sidebar to move between common areas:
- Workspace contains notebooks and folders.
- Catalog lets you browse catalogs, schemas, and tables.
- Compute lists clusters and SQL warehouses.
- Workflows contains jobs and schedules.
- SQL provides queries, dashboards, and SQL warehouses.
Keep development files organized in folders, and use clear names for notebooks and jobs.
Exercise
Why does a lakehouse reduce the need to copy data between a lake and a warehouse?
Show answer
It adds transactions, schemas, governance, and SQL access directly to data stored in open cloud storage.