0% complete

Data engineering on the Databricks Lakehouse · Lesson 2 of 3

Workspace, catalog, schema, and table objects

Navigate the logical structure used to organize and govern Databricks data.

Lesson

Databricks workspaces provide an environment for developing and operating workloads. Unity Catalog organizes governed data using a metastore, catalogs, schemas, and objects such as tables, views, volumes, and functions. A three-part table name commonly takes the form catalog.schema.table. Separating environments or domains into catalogs and schemas makes ownership, permissions, and discovery easier to reason about. A workspace is not itself a table namespace, and a notebook path is not a substitute for a governed data object. Identify the current catalog and schema explicitly in reusable SQL and jobs rather than relying on a developer session's defaults. Check that the job identity has the required grants. Practice task: write a fully qualified name for a curated orders table and identify who owns each namespace level. Applying the pattern: Choose the governed catalog and schema, use a fully qualified object name, and verify the executing identity can access the object. Checks and failure modes: A query that works interactively may fail in a job because its run identity, current catalog, or privileges differ. Before production, test both a representative input and a boundary case. Confirm the expected row grain, permissions, recovery behavior, and observable output for the task. Record the configuration needed to reproduce the run and compare its result with the agreed data contract. Practice task: Which is a three-part Unity Catalog table name?

Visual guide

Governed object hierarchy

  1. Step 01 Metastore

    Provides the governance boundary.

  2. Step 02 Catalog

    Groups data by domain or environment.

  3. Step 03 Schema

    Organizes related database objects.

  4. Step 04 Table

    Stores a queryable data product.

Code examples

Fully qualify a table
SQL
SELECT order_id, order_total FROM main.sales.silver_orders;
Expected output
Reads named columns from a governed table without relying on the current schema.

Key points

  • Choose the governed catalog and schema, use a fully qualified object name, and verify the executing identity can access the object.
  • A query that works interactively may fail in a job because its run identity, current catalog, or privileges differ.
  • Re-run the included practice scenario after changing source data or transformation logic.

Check your understanding

Practice

Which is a three-part Unity Catalog table name?

Your learning progress

Finish this lesson