Unity Catalog
Guidance for Unity Catalog system tables, volumes, and governance.
When to Use This Skill
Use this skill when:
- Working with volumes (upload, download, list files in
/Volumes/)
- Querying lineage (table dependencies, column-level lineage)
- Analyzing audit logs (who accessed what, permission changes)
- Monitoring billing and usage (DBU consumption, cost analysis)
- Tracking compute resources (cluster usage, warehouse metrics)
- Reviewing job execution (run history, success rates, failures)
- Analyzing query performance (slow queries, warehouse utilization)
Reference Files
| Topic |
File |
Description |
| System Tables |
5-system-tables.md |
Lineage, audit, billing, compute, jobs, query history |
| Volumes |
6-volumes.md |
Volume file operations, permissions, best practices |
Quick Start
Volume File Operations (MCP Tools)
# List files in a volume
list_volume_files(volume_path="/Volumes/catalog/schema/volume/folder/")
# Upload file to volume
upload_to_volume(
local_path="/tmp/data.csv",
volume_path="/Volumes/catalog/schema/volume/data.csv"
)
# Download file from volume
download_from_volume(
volume_path="/Volumes/catalog/schema/volume/data.csv",
local_path="/tmp/downloaded.csv"
)
# Create directory
create_volume_directory(volume_path="/Volumes/catalog/schema/volume/new_folder")
Enable System Tables Access
-- Grant access to system tables
GRANT USE CATALOG ON CATALOG system TO `data_engineers`;
GRANT USE SCHEMA ON SCHEMA system.access TO `data_engineers`;
GRANT SELECT ON SCHEMA system.access TO `data_engineers`;
Common Queries
-- Table lineage: What tables feed into this table?
SELECT source_table_full_name, source_column_name
FROM system.access.table_lineage
WHERE target_table_full_name = 'catalog.schema.table'
AND event_date >= current_date() - 7;
-- Audit: Recent permission changes
SELECT event_time, user_identity.email, action_name, request_params
FROM system.access.audit
WHERE action_name LIKE '%GRANT%' OR action_name LIKE '%REVOKE%'
ORDER BY event_time DESC
LIMIT 100;
-- Billing: DBU usage by workspace
SELECT workspace_id, sku_name, SUM(usage_quantity) AS total_dbus
FROM system.billing.usage
WHERE usage_date >= current_date() - 30
GROUP BY workspace_id, sku_name;
MCP Tool Integration
Use mcp__databricks__execute_sql for system table queries:
# Query lineage
mcp__databricks__execute_sql(
sql_query="""
SELECT source_table_full_name, target_table_full_name
FROM system.access.table_lineage
WHERE event_date >= current_date() - 7
""",
catalog="system"
)
Best Practices
- Filter by date - System tables can be large; always use date filters
- Use appropriate retention - Check your workspace's retention settings
- Grant minimal access - System tables contain sensitive metadata
- Schedule reports - Create scheduled queries for regular monitoring
Related Skills
Resources
1---2name: databricks-unity-catalog3description: Unity Catalog system tables and volumes. Use when querying system tables (audit, lineage, billing) or working with volume file operations (upload, download, list files in /Volumes/).4---56# Unity Catalog78Guidance for Unity Catalog system tables, volumes, and governance.910## When to Use This Skill1112Use this skill when:13- Working with **volumes** (upload, download, list files in `/Volumes/`)14- Querying **lineage** (table dependencies, column-level lineage)15- Analyzing **audit logs** (who accessed what, permission changes)16- Monitoring **billing and usage** (DBU consumption, cost analysis)17- Tracking **compute resources** (cluster usage, warehouse metrics)18- Reviewing **job execution** (run history, success rates, failures)19- Analyzing **query performance** (slow queries, warehouse utilization)2021## Reference Files2223| Topic | File | Description |24|-------|------|-------------|25| System Tables | [5-system-tables.md](5-system-tables.md) | Lineage, audit, billing, compute, jobs, query history |26| Volumes | [6-volumes.md](6-volumes.md) | Volume file operations, permissions, best practices |2728## Quick Start2930### Volume File Operations (MCP Tools)3132```python33# List files in a volume34list_volume_files(volume_path="/Volumes/catalog/schema/volume/folder/")3536# Upload file to volume37upload_to_volume(38 local_path="/tmp/data.csv",39 volume_path="/Volumes/catalog/schema/volume/data.csv"40)4142# Download file from volume43download_from_volume(44 volume_path="/Volumes/catalog/schema/volume/data.csv",45 local_path="/tmp/downloaded.csv"46)4748# Create directory49create_volume_directory(volume_path="/Volumes/catalog/schema/volume/new_folder")50```5152### Enable System Tables Access5354```sql55-- Grant access to system tables56GRANT USE CATALOG ON CATALOG system TO `data_engineers`;57GRANT USE SCHEMA ON SCHEMA system.access TO `data_engineers`;58GRANT SELECT ON SCHEMA system.access TO `data_engineers`;59```6061### Common Queries6263```sql64-- Table lineage: What tables feed into this table?65SELECT source_table_full_name, source_column_name66FROM system.access.table_lineage67WHERE target_table_full_name = 'catalog.schema.table'68 AND event_date >= current_date() - 7;6970-- Audit: Recent permission changes71SELECT event_time, user_identity.email, action_name, request_params72FROM system.access.audit73WHERE action_name LIKE '%GRANT%' OR action_name LIKE '%REVOKE%'74ORDER BY event_time DESC75LIMIT 100;7677-- Billing: DBU usage by workspace78SELECT workspace_id, sku_name, SUM(usage_quantity) AS total_dbus79FROM system.billing.usage80WHERE usage_date >= current_date() - 3081GROUP BY workspace_id, sku_name;82```8384## MCP Tool Integration8586Use `mcp__databricks__execute_sql` for system table queries:8788```python89# Query lineage90mcp__databricks__execute_sql(91 sql_query="""92 SELECT source_table_full_name, target_table_full_name93 FROM system.access.table_lineage94 WHERE event_date >= current_date() - 795 """,96 catalog="system"97)98```99100## Best Practices1011021. **Filter by date** - System tables can be large; always use date filters1032. **Use appropriate retention** - Check your workspace's retention settings1043. **Grant minimal access** - System tables contain sensitive metadata1054. **Schedule reports** - Create scheduled queries for regular monitoring106107## Related Skills108109- **[databricks-spark-declarative-pipelines](../databricks-spark-declarative-pipelines/SKILL.md)** - for pipelines that write to Unity Catalog tables110- **[databricks-jobs](../databricks-jobs/SKILL.md)** - for job execution data visible in system tables111- **[databricks-synthetic-data-generation](../databricks-synthetic-data-generation/SKILL.md)** - for generating data stored in Unity Catalog Volumes112- **[databricks-aibi-dashboards](../databricks-aibi-dashboards/SKILL.md)** - for building dashboards on top of Unity Catalog data113114## Resources115116- [Unity Catalog System Tables](https://docs.databricks.com/administration-guide/system-tables/)117- [Audit Log Reference](https://docs.databricks.com/administration-guide/account-settings/audit-logs.html)