Databricks system tables record what happens in your account: what it costs, who changed what, which queries were slow and which jobs failed. The catalog lists dozens of tables, and it is not always clear which one answers which question. This guide starts from the question and gives you the system table, its status and retention, and a query you can run today. The complete code for this guide is on GitHub: databricks/system-tables.

A diagram. The system catalog branches into billing for cost, access for who did what and what reads what, query for how queries ran, lakeflow for jobs, pipelines and Zerobus, compute for warehouses and clusters, storage for table size and optimization, and one group for serving, ai_gateway, mlflow and sharing.
The system catalog, grouped by what each schema answers.

What are Databricks system tables

System tables are read-only Unity Catalog tables in the system catalog. Databricks fills them with operational data from your account, and you query them with SQL like any other table.

  • They live in schemas such as billing, access, compute, lakeflow, query and storage.
  • Access is governed by Unity Catalog, and the tables cannot be modified.
  • Most system tables are free to use. You pay for the compute that runs your queries, and for storage only if you keep data longer than 395 days. system.ai_gateway.usage is a billed exception (see Things to know).
  • Many tables keep 395 days of history by default. Some keep data indefinitely, and a few keep less. Check each table's retention in the list below.
  • Each table has its own release status. Where the documentation gives no label, this guide says so.

When to use them

Use system tables when the question is about your account as a whole: cost, activity, health or storage. They answer questions across every workspace in the region, which a single notebook or job page cannot.

Use another source when you need a live view. System tables are not real-time monitoring, and most of them are written with a delay. For a running job or a query that is stuck right now, use the job run page or the query profile.

Prerequisites

  • A workspace with Unity Catalog and the system schemas enabled.
  • A SQL warehouse or other compute to run the queries.
  • Permission to read the system tables. The next section lists the grants.

How to get access

The system tables reference says: "Users with both the account admin and metastore admin roles have access to system tables by default." To let other people query them, grant three privileges on the system catalog and its schemas.

GRANT USE CATALOG ON CATALOG system TO `<group>`; GRANT USE SCHEMA ON SCHEMA system.billing TO `<group>`; GRANT SELECT ON SCHEMA system.billing TO `<group>`; 

Repeat the last two lines for each schema you want to share, for example access, compute, lakeflow and query. Grant to a group, not to single users.

Some table pages word the default differently. The MLflow and data quality monitoring pages say only account admins have access by default, and the Zerobus page says a metastore admin and a workspace admin (system tables reference, MLflow, data quality monitoring, Zerobus). Check the page of the table you grant.

Two tables mask sensitive values for most people. In system.query.history, the query text is hidden unless you are an account admin or a member of databricks_pii_access. Some request_params in system.access.audit are masked in the same way.

The questions and the tables that answer them

Each row below is a question, the table that answers it, and the table's status and retention as the documentation states them. "No label" means the documentation page gives no release status for the table.

Question Table Status Retention
What did we spend, by product? system.billing.usage with system.billing.list_prices No label Indefinite
Who changed permissions? system.access.audit Public Preview 395 days
What reads this table? system.access.table_lineage No label 395 days
Which queries were slowest? system.query.history No label 395 days
Which job runs failed? system.lakeflow.job_run_timeline with system.lakeflow.jobs No label 395 days
How long do pipeline updates take? system.lakeflow.pipeline_update_timeline No label 395 days
When did my warehouses start and stop? system.compute.warehouse_events No label 395 days
What did predictive optimization do? system.storage.predictive_optimization_operations_history Public Preview 395 days
How much did Zerobus ingest? system.lakeflow.zerobus_ingest Beta 395 days
Which tables use my storage? system.storage.table_metrics_history Generally available (per the November 25, 2026 release note) 13 months

The first nine are covered below with a query and its result. The last one is the subject of Part 2. Every query runs against a serverless SQL warehouse and returns at most ten rows.

Spend by product

Use system.billing.usage for usage and join system.billing.list_prices to turn DBUs into dollars. The result is at list price, not an invoice. Discounts and negotiated prices are not included.

SELECT u.billing_origin_product, ROUND(SUM(u.usage_quantity), 2) AS dbus, ROUND(SUM(u.usage_quantity * p.pricing.default), 2) AS list_price_usd FROM system.billing.usage u JOIN system.billing.list_prices p ON u.sku_name = p.sku_name AND u.usage_unit = p.usage_unit AND u.usage_start_time >= p.price_start_time AND (p.price_end_time IS NULL OR u.usage_start_time < p.price_end_time) WHERE u.usage_date >= date_sub(current_date(), 30) GROUP BY u.billing_origin_product ORDER BY list_price_usd DESC LIMIT 10; 

A query on billing.usage joined to list_prices, and its result: one row per product with DBUs and list price in US dollars. SQL has the highest list price, followed by JOBS, INTERACTIVE and DLT.
Spend by product over the last 30 days, at list price.

For cost by tag, see Databricks Cost Tags. For what one serverless job run costs, see Databricks Serverless Jobs: What Happens When You Press Run.

Who changed permissions

Permission changes on Unity Catalog objects are logged in system.access.audit under the service unityCatalog and the action updatePermissions. The audit table is in Public Preview.

SELECT event_time, user_identity.email AS changed_by, action_name, request_params['securable_type'] AS securable_type, request_params['securable_full_name'] AS securable FROM system.access.audit WHERE event_date >= date_sub(current_date(), 30) AND service_name = 'unityCatalog' AND action_name = 'updatePermissions' ORDER BY event_time DESC LIMIT 10; 

A query on access.audit filtered to updatePermissions, and its result: rows with event time, the person who made the change, the securable type and the object name. The email column is masked.
The latest permission changes, with who made them and on which object.

The documentation also lists the actions grantPermission, revokePermission, denyPermission and changeSecurableOwner under the service sqlPermissions. Add them to the filter if you use those paths. For the permissions a token can use, see Databricks Token Scopes Explained.

What reads a table

system.access.table_lineage records one row for each read or write on a Unity Catalog table. Filter on the source table to see who reads it.

SELECT COALESCE(entity_type, 'not attributed') AS entity_type, COUNT(*) AS reads, MAX(event_time) AS last_read FROM system.access.table_lineage WHERE source_table_full_name = '<catalog>.<schema>.<table>' AND event_time >= date_sub(current_date(), 30) GROUP BY COALESCE(entity_type, 'not attributed') ORDER BY reads DESC; 

A query on access.table_lineage for one source table, and its result: a row for reads with no entity type, such as queries, and a row for reads by a pipeline, each with a count and the time of the last read.
Reads of one table in the last 30 days, by the kind of reader.

An empty entity type means the read did not come from a job, pipeline, dashboard or other tracked entity, for example an ad hoc query. This is the table to check before you change or drop a table.

The slowest queries this week

system.query.history has one row per statement, with durations in milliseconds.

SELECT start_time, executed_by, ROUND(total_duration_ms / 1000, 1) AS seconds, ROUND(read_bytes / 1e6, 1) AS read_mb, LEFT(REGEXP_REPLACE(statement_text, '\\s+', ' '), 60) AS statement FROM system.query.history WHERE start_time >= date_sub(current_date(), 7) AND execution_status = 'FINISHED' ORDER BY total_duration_ms DESC LIMIT 10; 

A query on query.history, and its result: ten rows with start time, the user (masked), duration in seconds, megabytes read and the first 60 characters of the statement.
The ten slowest finished queries of the week.

The columns waiting_for_compute_duration_ms and execution_duration_ms split the total time, so you can tell a slow query from a query that waited for compute.

Failed job runs and their duration

system.lakeflow.job_run_timeline has one row per time slice of a run, so group by run_id. system.lakeflow.jobs keeps one row per change to a job, so take the latest row to get the name.

WITH latest_jobs AS ( SELECT job_id, name FROM system.lakeflow.jobs QUALIFY ROW_NUMBER() OVER (PARTITION BY workspace_id, job_id ORDER BY change_time DESC) = 1 ), runs AS ( SELECT job_id, run_id, MAX(result_state) AS result_state, MAX(termination_code) AS termination_code, MIN(period_start_time) AS started, MAX(period_end_time) AS ended FROM system.lakeflow.job_run_timeline WHERE period_start_time >= date_sub(current_date(), 30) GROUP BY job_id, run_id ) SELECT j.name AS job, r.started, r.result_state, r.termination_code, ROUND(TIMESTAMPDIFF(SECOND, r.started, r.ended) / 60, 1) AS minutes FROM runs r LEFT JOIN latest_jobs j USING (job_id) WHERE r.result_state IN ('ERROR', 'FAILED', 'TIMED_OUT') ORDER BY r.started DESC LIMIT 10; 

A query joining job_run_timeline to jobs, and its result: ten failed runs with job name, start time, the state ERROR, the termination code and the duration in minutes. One row has an empty job name because the job was deleted.
Failed job runs with the termination code and the duration in minutes.

A job that was deleted has no name in the result, because system.lakeflow.jobs keeps its last row with a deletion time. To find jobs that never ran as expected, count runs by termination_code.

Pipeline update durations

system.lakeflow.pipeline_update_timeline follows the same pattern, with system.lakeflow.pipelines for the name.

WITH latest_pipelines AS ( SELECT pipeline_id, name FROM system.lakeflow.pipelines QUALIFY ROW_NUMBER() OVER (PARTITION BY workspace_id, pipeline_id ORDER BY change_time DESC) = 1 ), updates AS ( SELECT pipeline_id, update_id, MAX(result_state) AS result_state, MIN(period_start_time) AS started, MAX(period_end_time) AS ended FROM system.lakeflow.pipeline_update_timeline WHERE period_start_time >= date_sub(current_date(), 30) GROUP BY pipeline_id, update_id ) SELECT p.name AS pipeline, u.started, u.result_state, ROUND(TIMESTAMPDIFF(SECOND, u.started, u.ended) / 60, 1) AS minutes FROM updates u LEFT JOIN latest_pipelines p USING (pipeline_id) ORDER BY minutes DESC LIMIT 10; 

The result lists the longest updates with their state, so a slow update and a failed update both show up. The saved result is in the repository folder.

Warehouse start and stop events

system.compute.warehouse_events records each start, stop and scaling event of a SQL warehouse.

SELECT warehouse_id, event_type, COUNT(*) AS events, MAX(event_time) AS latest FROM system.compute.warehouse_events WHERE event_time >= date_sub(current_date(), 30) GROUP BY warehouse_id, event_type ORDER BY warehouse_id, events DESC; 

The event types are STARTING, RUNNING, SCALED_UP, SCALED_DOWN, STOPPING and STOPPED. A warehouse that starts many times a day usually has an auto-stop setting that is too short for how it is used.

What predictive optimization did

system.storage.predictive_optimization_operations_history lists the operations that predictive optimization ran on your tables, with the DBUs each used. The table is in Public Preview.

SELECT operation_type, operation_status, COUNT(*) AS operations, ROUND(SUM(usage_quantity), 4) AS dbus FROM system.storage.predictive_optimization_operations_history WHERE start_time >= date_sub(current_date(), 30) GROUP BY operation_type, operation_status ORDER BY operations DESC; 

How much Zerobus ingested

system.lakeflow.zerobus_ingest is in Beta. It records the commits that Zerobus Ingest writes to each table.

SELECT table_name AS table, COUNT(*) AS commits, SUM(committed_records) AS records, ROUND(SUM(committed_bytes) / 1e6, 2) AS mb FROM system.lakeflow.zerobus_ingest WHERE commit_time >= date_sub(current_date(), 30) GROUP BY table_name ORDER BY records DESC LIMIT 10; 

The numbers match the ones in the Zerobus guide for the same table. Use it with system.billing.usage to relate ingested volume to cost.

Example: a weekly account review

A short routine that uses these tables is a good model for your own. Each Monday, run the spend query, the failed runs query and the permission changes query. Spend by product shows where the cost went. Failed runs shows which jobs need attention. Permission changes shows whether anyone changed access that you did not expect. Save the three queries as a SQL alert or a scheduled dashboard, and keep the queries in version control. The full example, including the nine queries and the saved results, is in the system-tables folder of the repository.

Things to know

  • Retention. Most tables keep 395 days. Account admins can set an account-wide period from 30 to 3,650 days, and configurable retention is generally available as of November 18, 2026. The first 395 days are free, and data kept longer incurs storage charges. A longer period applies at once and does not backfill history. A shorter period takes seven days to apply.
  • Regions. Billing and pricing tables are global. Most other tables, such as audit, lineage, query history and the Lakeflow tables, hold data for workspaces in the same region as the metastore.
  • Freshness. System tables are not real-time. Billing rows can arrive many hours after the usage, so wait before you compare days.
  • Cost. Most system tables are free to query apart from the compute that runs the query. The exception is system.ai_gateway.usage: the AI Gateway documentation says usage tracking is a billed Unity Gateway feature, and Databricks charges for the usage it logs to that table (AI Gateway usage tracking). The system tables reference itself says system tables are free, so check the table's own page for billing notes. Use a small or serverless warehouse, and filter on a date column so the query reads little.
  • Selective queries. A query that reads too much can fail with "System Table query returned too much data. Please repeat query with more selective predicates." Add a date filter.
  • Slowly changing tables. jobs and pipelines keep one row per change, so take the latest row with QUALIFY ROW_NUMBER().
  • Streaming. You can stream from system tables on Databricks Runtime 16.4 and above. Set skipChangeCommits to true, and keep the stream within seven days, because system tables use a seven-day VACUUM retention.
  • Schemas can change. New columns and new fields in struct columns can appear at any time, so select the columns you need instead of *.

Every system table at a glance

Use this as a reference: find the schema, then the table. Every table in the documentation index is listed here, grouped by schema, with what it records and its status. "No status label" means the documentation gives no release status for that table. A table marked "Needs" requires a preview, a feature or your account team before it holds data. Whether a table exists in your account depends on which features you use, so run SHOW TABLES IN system.<schema> to see yours. system.billing.account_prices is not in the documentation index, and it appeared in the test account.

billing

  • system.billing.account_prices: Not in the docs index, so there's no documented description or status.
  • system.billing.attributed_cost: Estimated share of SQL warehouse usage per query. Status: Beta.
  • system.billing.list_prices: Historical log of SKU prices, a row per price change. Status: no status label in the docs.
  • system.billing.usage: All billable usage in the account. Status: no status label in the docs.

access

  • system.access.assistant_events: User messages sent to Genie Code (user-submitted only since May 7, 2026). Status: Public Preview.
  • system.access.audit: Audit events from workspaces in the region. Status: Public Preview.
  • system.access.clean_room_events: Clean room actions. Status: Public Preview.
  • system.access.column_lineage: One record per read or write on a Unity Catalog column (no record when there is no source). Status: no status label in the docs.
  • system.access.inbound_network: Inbound access denied by an ingress policy. Status: Public Preview.
  • system.access.outbound_network: Outbound internet access denied. Status: Public Preview.
  • system.access.table_lineage: One record per read or write on a Unity Catalog table or path. Status: no status label in the docs.
  • system.access.workspaces_latest: Slow-changing metadata of all workspaces in the account. Status: Public Preview.

query

  • system.query.history: Queries on SQL warehouses, serverless notebooks, jobs and Lakeflow pipelines. Status: no status label in the docs.

lakeflow

  • system.lakeflow.job_run_timeline: Start and end times of job runs. Status: no status label in the docs.
  • system.lakeflow.job_task_run_timeline: Start and end times and compute for task runs. Status: no status label in the docs.
  • system.lakeflow.job_tasks: All job tasks, kept as history, one row per change. Status: no status label in the docs.
  • system.lakeflow.jobs: All jobs created in the account, kept as history, one row per change. Status: no status label in the docs.
  • system.lakeflow.pipeline_update_timeline: Start and end times and compute for pipeline updates. Status: no status label in the docs.
  • system.lakeflow.pipelines: All pipelines created in the account. Status: no status label in the docs.
  • system.lakeflow.zerobus_ingest: Records ingested with Zerobus Ingest. Status: Beta.
  • system.lakeflow.zerobus_stream: Stream events from Zerobus Ingest. Status: Beta.

lakeflow_pipeline_events_preview

  • system.lakeflow_pipeline_events_preview.pipeline_events: Pipeline event log entries (lifecycle, flow progress, data quality, errors). Status: Beta. Note: moves to system.lakeflow.pipeline_events at general availability.

compute

  • system.compute.clusters: Compute configurations (all-purpose, jobs, pipelines, pipeline maintenance), kept as history, one row per change. Status: no status label in the docs.
  • system.compute.instance_events: State transitions of classic compute instances. Status: Public Preview.
  • system.compute.instance_pools: Instance pool configurations, kept as history, one row per change. Status: Public Preview.
  • system.compute.node_timeline: Minute-level utilization per node (all-purpose and jobs compute). Status: no status label in the docs.
  • system.compute.node_types: Currently available node types with hardware info. Status: no status label in the docs.
  • system.compute.warehouse_events: SQL warehouse start, stop, running, scale up and down. Status: no status label in the docs.
  • system.compute.warehouses: SQL warehouse configurations, kept as history, one row per change. Status: no status label in the docs.

storage

  • system.storage.auto_upgrade_operations_history: Feature enablement by automatic upgrades on Unity Catalog managed tables. Status: Public Preview.
  • system.storage.predictive_optimization_operations_history: Operation history of predictive optimization. Status: Public Preview.
  • system.storage.table_metrics_history: Daily storage size of Unity Catalog managed tables, materialized views and streaming tables. Status: Generally available (per the November 25, 2026 release note).

alert

  • system.alert.alert_evaluation_history: One row per alert evaluation. Status: no status label in the docs.
  • system.alert.alerts: Alert configuration, kept as history, one row per change. Status: no status label in the docs.

serving

  • system.serving.endpoint_usage: Token counts per serving request; needs usage tracking enabled on the endpoint. Status: Public Preview. Needs: usage tracking enabled on the endpoint.
  • system.serving.served_entities: Metadata for served entities per endpoint, kept as history, one row per change. Status: Public Preview.

ai_gateway

  • system.ai_gateway.external_model_spend: Estimated USD spend for external models, hourly. Status: Beta.
  • system.ai_gateway.usage: Unity Gateway requests: tokens, latency, routing. Status: Public Preview. Note: a billed feature.

mlflow

  • system.mlflow.experiments_latest: One row per experiment. Status: Public Preview.
  • system.mlflow.run_metrics_history: Time series of metrics logged on runs. Status: Public Preview.
  • system.mlflow.runs_latest: One row per run, params, tags, aggregated metrics. Status: Public Preview.

sharing

  • system.sharing.materialization_history: Data materializations from view sharing, MVs, streaming tables via OpenSharing. Status: Public Preview (page banner; the index shows no label). Needs: an account admin to enable it in the account console Previews.

marketplace

  • system.marketplace.listing_access_events: Consumer info for request-data and get-data events. Status: Public Preview.
  • system.marketplace.listing_funnel_events: Consumer impressions and funnel data. Status: Public Preview.

data_classification

  • system.data_classification.results: Column-level detections of sensitive data classes. Status: Public Preview (index; the page has no banner).

data_quality_monitoring

  • system.data_quality_monitoring.table_results: Freshness and completeness check results, incidents. Status: no status label in the docs.

tags

  • system.tags.governed_tags: Governed tag definitions in the account. Status: Beta.

replication

  • system.replication.states: Replication status for managed disaster recovery (gated, apply via account team). Status: no status label in the docs. Needs: gated: apply through your account team.

lakebase

  • system.lakebase.active_session_history: Sampled snapshots of active Postgres backend state, including what each session is running and waiting on. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.compute_counters: Per-window compute and host counter deltas. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.compute_gauges: Point-in-time compute capacity and health values. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.database_counters: Per-window Postgres database counter deltas. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.database_gauges: Point-in-time Postgres database values. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.ddl_history: Captured top-level DDL and schema-change events. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.pg_stat_statements_counters: Per-window execution statistics for normalized statements. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.plan_history: Captured query executions and their plans. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.postgres_logs: Structured Postgres log events. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.
  • system.lakebase.wait_event_counters: Per-window counts and durations for Postgres wait events. Status: Beta. Needs: a workspace admin to turn on the Lakebase preview.

Best practices

  • Start from the question, then pick the table, and keep each query in a file with a date filter.
  • Label cost results as list price, not as an invoice.
  • Grant access to a group, and give people only the schemas they need.
  • Aggregate timeline tables by run or update ID before you compare durations.
  • Check each table's status before you build an alert on it, because some tables are in Public Preview or Beta.

Summary

System tables record cost, activity, health and storage for your whole account, in Unity Catalog tables that you query with SQL. Pick the table by the question, check its status and retention, and add a date filter to every query. Use them for account-wide questions, and use the run and query pages for what is happening right now.

Which system table do you query most, and which one would you like to see documented better?

Part 2, on the storage table, is coming next.

References