Skip to content

Databricks SQL Warehouse Cost Analysis

SQL Analysis covers Databricks SQL warehouses and SQL query history. It complements Clusters by focusing on warehouse-backed and serverless SQL workloads.

Summary cards for cost, query count, average runtime, and error rate, plus trends for spend and activity.

Groups SQL cost and query activity by user or service principal. Use this tab to identify owners of expensive or failing SQL workloads and to open principal detail pages.

Highlights SQL efficiency problems such as cold-start waste, long-running queries, high error rates, and warehouses that may have inefficient auto-stop settings.

A searchable query list with filters for source, status, warehouse, principal, and time range. Rows include runtime, cost, status, source, warehouse, and deep links where available.

Open an individual query to review:

  • Statement status and runtime.
  • Cost estimate.
  • Warehouse and principal.
  • Source such as Job, Notebook, Dashboard, Alert, Genie, SQL Editor, or API.
  • Databricks deep link when available.

LakeSentry uses system.query.history to classify SQL activity by source. This helps distinguish dashboard refreshes, scheduled jobs, interactive SQL editor usage, and API-driven workloads.

SQL warehouse cost may be attributed directly to a warehouse owner, to a mapped principal, or through session/query-duration signals when shared warehouse usage can be split fairly.