What are Databricks SQL warehouses? A Databricks SQL warehouse is compute optimised for SQL and business intelligence workloads on the lakehouse. Analysts use it through the SQL editor, dashboards and connections from BI tools, and it reads governed Delta tables directly. This guide explains the types of SQL warehouse, how sizing and scaling work, how to choose between serverless, pro and classic options, how to connect BI tools, how to tune performance and control cost and how to avoid common mistakes. Options, sizes and names change, so confirm details in current Databricks documentation.
Short answer: A SQL warehouse is dedicated SQL compute with auto-stop and scaling. Use serverless where available for fast start and low management, size by workload, set auto-stop and scaling limits and use separate warehouses for different teams or tools.
What is a SQL warehouse?
A SQL warehouse runs queries issued from the Databricks SQL editor, dashboards, alerts and external tools. It uses the Photon engine for fast execution and is separate from the clusters used for notebooks and jobs, so heavy engineering work does not slow analysts. It queries tables registered in Unity Catalog and stored as Delta Lake, which is what makes the lakehouse usable for business intelligence.

Types of SQL warehouse
| Type | Description | Consider when |
|---|---|---|
| Serverless | Compute managed by Databricks, starts in seconds and scales quickly | Interactive BI with variable demand, minimal administration |
| Pro | Customer-cloud compute with advanced features and good performance | You need features not yet in serverless or specific networking |
| Classic | Basic SQL compute in your cloud account | Simple needs where other types are unavailable |
Availability depends on region and plan, so check current documentation. Serverless is usually the first option to evaluate for new BI workloads.
Sizing and scaling
- Warehouses use T-shirt sizes. A larger size gives more compute per query and helps large scans and complex joins.
- Scaling sets a minimum and maximum number of clusters. More clusters handle more concurrent queries and reduce queuing.
- Auto-stop ends the warehouse after idle time so you stop paying for it. Choose a value that balances cost with cold start.
- Start small, watch query queue time and duration and adjust one setting at a time.
As with other platforms, diagnose whether the problem is one slow query or many concurrent users before changing size or scaling. See Snowflake warehouse sizing for the same principle in another product.
Connecting BI tools and applications
| Tool or client | Typical connection |
|---|---|
| Power BI | Databricks connector using a warehouse and a service principal or token. See Power BI |
| Tableau | Databricks connector or standard drivers. See Tableau |
| Python and applications | SQL connectors and drivers using OAuth or tokens |
| dbt | Adapter for Databricks SQL, running models on a warehouse. See dbt |
| Notebooks and jobs | Use the warehouse as a SQL task or from code |
Use service principals and least privilege rather than personal tokens for shared dashboards.
How to set up a warehouse
- Define the audience. Decide whether it serves analysts, a BI tool, scheduled reports or an application.
- Choose the type. Prefer serverless where it meets needs, otherwise pro.
- Pick a starting size and scaling. Begin small with a modest maximum cluster count.
- Set auto-stop and tags. Tag with team and project for cost attribution.
- Grant access. Give groups permission to use the warehouse, and separate admin rights.
- Test with real queries. Compare duration and queue time and tune.
- Review monthly. Check usage, cost and failures.
Performance tuning
- Model data in gold tables designed for reporting, with sensible keys and pre-aggregated rollups where needed.
- Use clustering and file compaction on large tables so queries skip irrelevant files.
- Filter on clustered or partitioned columns and select only the columns you need.
- Use query history to find the slowest and most expensive queries and assign owners.
- Cache and reuse results where dashboards repeat the same queries.
Cost control
Warehouse cost depends on size, number of clusters and run time. Keep auto-stop low enough to avoid idle charges, limit the maximum clusters, split a busy shared warehouse by team and use tags to chargeback or show back. Watch for dashboards that auto-refresh too often, because each refresh runs queries. Review usage tables monthly and compare cost per query or per dashboard against the value they bring. See FinOps.
Dashboards, alerts and sharing
Dashboards in Databricks SQL run on a warehouse and refresh on a schedule you choose. Share them with groups, and prefer running with the viewer permissions or a controlled service identity so data access follows policy. Alerts can notify a team when a query result crosses a threshold, such as daily sales falling below a limit, and are cheap to run when the query is simple. Keep a short catalogue of certified dashboards and retire ones that nobody opens, because each scheduled refresh consumes compute.
| Item | Good practice |
|---|---|
| Refresh schedule | Match business need, not the default |
| Shared queries | Own them in a group and review them |
| Alerts | Use for thresholds and data freshness checks |
| Parameters | Use dropdowns to avoid many near-identical queries |
| Permissions | Grant to groups, avoid personal sharing |
Monitoring a warehouse
- Track queue time, run time and failure rate by warehouse and by user group.
- Review the most expensive queries weekly and assign each to an owner.
- Watch the number of running clusters against the maximum to see if scaling limits are too low or too high.
- Use the usage tables with tags to compare cost per team and per dashboard.
- Set alerts for unusual spend so surprises are caught within a day.
Migrating from another warehouse
Teams moving reporting from a traditional warehouse should inventory dashboards, schedules and permissions first, then rebuild the most used gold tables in Delta format. Run the old and new queries side by side and compare totals before switching dashboards. Expect some SQL dialect differences and plan time to retrain analysts. See data migration for a general approach.
Common mistakes
- One shared warehouse for every team, so a heavy report slows everyone.
- Setting a very large size to compensate for poor table design.
- Leaving auto-stop disabled for development warehouses.
- Using personal tokens for production dashboards.
- Never reviewing which dashboards and queries run most often.
A worked example
A retailer had one Large warehouse used by analysts, a BI tool and an application. Morning dashboards queued behind exploratory queries. The team created three warehouses: a serverless warehouse for the BI tool with scaling to three clusters, a smaller one for analysts and a dedicated warehouse for the application with tight permissions. They tagged each warehouse and reduced dashboard refresh frequency from five minutes to thirty.
Queue times fell, and monthly cost dropped because idle time shrank. The example is illustrative.
Governance and support
Grant access to warehouses by group and keep production warehouses read-only for most users, in line with your data governance policy. Our data analytics service builds the reporting layer and our data warehousing service designs gold models that perform well on SQL warehouses.
Key takeaways
- SQL warehouses are compute optimised for SQL and BI.
- Serverless is often the best first option for BI workloads.
- Scale clusters for concurrency and size for heavy queries.
- Separate warehouses by team and set auto-stop.
- Use service principals and monitor query history.
Quick glossary
| Term | Meaning |
|---|---|
| SQL warehouse | Compute for SQL and BI workloads |
| Serverless | Compute managed by Databricks |
| Photon | Fast query engine used by SQL warehouses |
| Auto-stop | Stops the warehouse after idle time |
| Cluster scaling | Adds clusters for concurrency |
Read next: BigQuery vs Snowflake: Which Cloud Data Platform? · BigQuery Streaming Inserts: Real-Time Ingestion Guide · BigQuery Access Control: IAM, Policy Tags and Row Security
Frequently asked questions
What is a Databricks SQL warehouse?
It is compute optimised for SQL and BI workloads that queries governed Delta tables in the lakehouse.
What is the difference between serverless, pro and classic?
Serverless is managed by Databricks and starts quickly, while pro and classic run in your cloud account with different feature sets.
How do I handle many concurrent users?
Increase the maximum number of clusters so more queries run in parallel and queue less.
How do I make queries faster?
Improve table design and clustering, filter early and select only needed columns before increasing size.
Which BI tools can connect?
Common tools such as Power BI and Tableau connect through connectors or standard drivers.
What does auto-stop do?
It stops the warehouse after idle time so you stop paying for compute.
Should I use one warehouse for everything?
No. Separate warehouses by team or workload so heavy queries do not slow others.
How do I control cost?
Use auto-stop, limit clusters, tag usage, reduce refresh frequency and review expensive queries.
