Day 29 of Databrickster
Catalog
It’s a crucial piece of modern data governance and organisation in the Databricks Lakehouse.
What is a Catalog in Databricks?
A catalog is a top-level container in the Unity Catalog hierarchy that organises and secures schemas, tables, views, functions, and volumes.
Think of it like this,
Catalog — A digital library
— Schema… A section in the library
— Table… A book or a document
Hierarchical Structure
<catalog>.<schema>.<table>
<catalog>.<schema>.<view>
<catalog>.<schema>.<volume>In the image below, the hierarchy can be identified as workspace.default.users
Why is Catalog Important?
Catalogs hold significant importance for a multitude of reasons, which can be comprehensively understood by examining the following core themes:
Centralized Governance
- Catalogs enable fine-grained access control across all workspaces.
- You can define permissions at the catalog, schema, or object level using Unity Catalog.
Multi-Tenant Architecture
- Multiple teams/projects can share a Databricks workspace, stepping on each other’s toes.
- Each team can get its own catalog. e.g. marketing, finance, engineering
Data Lineage
- Unity Catalog automatically tracks column-level lineage.
- This helps you understand where data came from, how it was transformed, and where it goes.
Auditability
- Built-in audit logs help monitor access and changes to data assets.
Types of Catalogs
Different types of catalogs with Unity Catalog,
Standard CatalogsForeign Catalogshive_metastoreWorkspace Catalog
Standard Catalogs
These are the primary types of catalogs one can create in Unity Catalog. They serve as the top-level organisational unit for one’s data assets (schemas, tables, views, volumes, functions, and models).
Foreign Catalogs
These are Unity Catalog objects that mirror databases in external data systems (like Snowflake, BigQuery, Redshift, etc). It enables one to perform read-only queries on the external data systems directly from Databricks.
Hive Metastore
Enabling Unity Catalog, Hive metastore is automatically surfaced. This allows one to continue accessing their legacy Hive metastore.
Workspace Catalog
In a new Unity Catalog-enabled workspace, a default workspace is created (often sharing the workspace’s name). This catalog provides a convenient place for users within that specific workspace to start experimenting.
Use Cases
1. Cross-Team Collaboration with Governance
A large enterprise uses Unity Catalog to create separate catalogs for engineering, marketing, and finance teams. Each team works within its own secure environment. Role-based access ensures sensitive data is only visible to authorized users. This setup enables parallel workstreams, centralized governance, and controlled data sharing across departments — all within a single Databricks workspace.
2. Simplified Compliance in Regulated Industries
A healthcare company dealing with sensitive patient data leverages catalogs to isolate GDPR and HIPAA-compliant datasets. Catalog-level permissions prevent unauthorized access. Audit logs track every access and modification, aiding compliance reporting. Teams can confidently run analytics without compromising data privacy, simplifying compliance in regulatory environments.
3. Multi-Region Analytics with Lineage
A global retail chain builds region-specific catalogs — like us_sales, eu_sales, and apac_sales. Data lineage tools in Unity Catalog trace transformations across Delta Live Tables. Analysts can view the full data flow history and access only their region’s data. This streamlines collaboration while meeting data residency regulations and simplifying regional performance analysis.
Conclusion
In summary, Databricks Catalog — especially Unity Catalog — offers a powerful way to organize, govern, and securely access data across teams and regions. It simplifies compliance, enhances collaboration, and provides end-to-end lineage. With fine-grained access controls and centralized metadata management, Catalogs transform how enterprises manage data, laying the foundation for trusted, scalable, and auditable data platforms.
