Databricks vs ClickHouse for SQL analytics

Databricks SQL suits teams that want dashboards and data engineering on one platform over Delta tables. Self-hosted ClickHouse suits high-concurrency reporting on tables you run yourself, usually alongside Spark.

On this page

Which fits your dashboard and reporting workload

Choose Databricks SQL warehouses if your data engineering stays on Spark and you want dashboards on the same tables your pipelines write. If a renewal, cost review or residency requirement is forcing the question, start by asking whether SQL reporting is the only reason you would leave. When Spark jobs, Delta tables, governance and BI share one workspace, a Databricks SQL warehouse keeps the number of moving parts low, and the data stays in files your cloud account owns. ClickHouse fits when the reporting layer is the part that needs to be fast and cheap to run, and you are willing to operate a separate database for it.

The decision turns on three questions. First, will data engineering stay on Spark? If it will, ClickHouse becomes a second system that must be fed from Delta tables, and that feed is work you pay for. Second, what concurrency do your dashboards need at peak? Many users refreshing the same reports at the same time is the pattern where a dedicated MergeTree-based store is easiest to justify, and you should measure it with your own query logs rather than a vendor benchmark. Third, who will operate the cluster? ClickHouse runs on hosts you manage, so you need people for upgrades, replication, Keeper nodes and restore tests, and the ClickHouse replication documentation describes what that operation involves.

Practical deciding factors: list your top twenty dashboards and the tables they read, note how often each refreshes, and check which of them already depend on Delta features such as time travel or merge operations. Ask whether any dashboard needs data that must stay in a specific region or network, since that favors owned infrastructure in both options. Then price the run cost of each option as components: compute, storage, staff time for operations and on-call, and the pipelines that keep the two systems in sync. Ask any vendor or partner for those components as separate line items in the quote, so you can compare the options on the same basis.

Which option fits each scenario

This table maps common analytics scenarios to the option that usually fits better, with the storage model, concurrency or operating effort behind each choice. Read it as a starting point: the right answer depends on how much Spark work sits next to your dashboards and who will run the cluster.

ScenarioBetter fitReason
Shared lakehouse with heavy Spark pipelinesDatabricks or self-hosted Spark with Delta LakeDelta tables already sit in your bucket, and ClickHouse would add a second copy of curated data that Spark must keep in sync.
High-concurrency, customer-facing dashboardsClickHouseMergeTree tables are built for low-latency aggregation over large tables for many simultaneous readers, and you control the cluster sizing directly.
Mixed ad hoc exploration by analystsDatabricks SQL warehouse or Trino over DeltaAd hoc queries over files already in object storage need no load step, and the existing Delta tables stay the single source.
Air-gapped or residency-bound reportingClickHouse on your own hardwareClickHouse runs fully on your servers with no outside control plane, while Databricks keeps its control plane in the Databricks account. Confirm the air-gapped build and update path with your team.
Small BI team with no platform engineersDatabricks or ClickHouse Cloud, if managed operation is requiredA self-hosted ClickHouse cluster needs Keeper, backups and upgrades run by someone. Ask whether a managed option fits before you take on that work.
Reporting on data that is already a Delta tableTrino or Spark reading Delta in placeMoving data into MergeTree creates a second copy to load, schema-map and back up; reading in place avoids that duplication.
Reporting on data that is loaded from a warehouse exportClickHouseOnce data is exported to Parquet, ClickHouse can load it through its object storage table functions, and dashboard queries then run against native tables.

Where the data lives and who controls it

Databricks and self-hosted ClickHouse differ less in query speed than in where the control plane, compute and table files sit. Each card below covers one layer of that question, so a regulated team can map each layer to its own data protection, identity and audit obligations.

Databricks control plane and compute

Databricks runs the workspace control plane in its own account, while clusters and SQL warehouses run in your cloud account. Ask which control plane functions, logs and metadata leave your boundary, and where support access to them is granted. Confirm this with Databricks for your deployment type, because the split differs between classic and serverless compute. Confirm the control plane location before classifying any dataset.

Databricks pricing

ClickHouse inside your infrastructure

Self-hosted ClickHouse runs entirely on hosts you choose, with its server under Apache-2.0 and no vendor control plane on the data path. Your team owns the network segmentation, patching and key management. Check that the cluster, Keeper nodes and backup targets all sit inside the same boundary your auditors have documented.

ClickHouse repository

Delta tables in your own bucket

Delta tables are Parquet files plus a transaction log stored in your object storage, so the table files stay under your bucket policies, encryption and retention settings. Protection then depends on bucket versioning, access policies and the object lock you configure, not on the query engine. Verify that the bucket your Databricks workspace writes to is the one your data protection controls cover.

Delta Lake website

Identity and audit for regulated teams

ClickHouse supports LDAP, Kerberos, X.509 certificates, HTTP and JWT external authenticators, so access can follow your directory. Databricks access runs through its workspace identity and audit logging, which you should export and review. Ask both platforms for their audit log fields, retention and who holds administrative rights, then test whether a revoked user loses access in each.

External authenticators docs

Storage and networking bills still apply

Whichever platform you choose, your cloud provider bills object storage, egress and networking directly, so moving to ClickHouse does not remove those line items. Databricks adds DBU charges on top of compute, while self-hosted ClickHouse adds compute and staff time instead. Ask your finance and cloud teams to model storage and transfer under both designs before you compare totals.

Compliance evidence stays with your team

Compliance evidence for either design is prepared by your security and compliance staff, then reviewed by independent auditors who issue the reports and attestations. DeployOpen can help prepare systems, controls and evidence for that review, but it does not issue audit reports or certifications. Agree the evidence list with your auditor before the migration starts.

How storage and concurrency change the query path

The main difference on the query path is where the bytes live when a dashboard runs. Delta Lake keeps table data as Parquet files plus a transaction log in your own object storage, and any engine that reads the format can open the same table. ClickHouse loads data into its own MergeTree tables, so a dashboard query scans data stored on ClickHouse nodes rather than fetching Parquet from the bucket on each run. That local layout favors repeated, filtered aggregations, but it also means every table you want in ClickHouse needs an ingestion path, a schema and a copy to keep current. Before you commit, confirm which Delta tables ClickHouse can read directly through its supported table functions and connectors in your version, and test that path with a real table rather than assuming it.

Concurrency is where the two models differ most in operation. A Databricks SQL warehouse scales for many simultaneous users mainly through warehouse sizing and its scaling settings, so capacity planning centers on the warehouse you select. ClickHouse concurrency depends on the number of nodes, how many replicas serve reads, and table design choices such as partitioning and sorting keys, which determine how much data each query touches. A dashboard with a few hundred concurrent viewers may behave very differently from one with a handful of heavy analysts, so the number to measure is peak concurrent queries against your latency target, not average load.

Whichever path you choose, run a pilot with representative queries before you size anything. Pick the twenty or so dashboard queries that cause the most user complaints, the largest tables they read and a realistic peak hour, then run them on both platforms with the same data. Record latency at the p95 level, the cost of the run and how the results change when you add concurrent users. A pilot like this also shows whether your Delta tables need reshaping, which is usually cheaper to learn in week two than in production.

What stays on Spark for data engineering

ClickHouse is an analytical SQL engine, not a replacement for Spark across data engineering. Most teams that move dashboard and reporting queries to ClickHouse keep a Spark layer for ingestion, streaming, machine learning, orchestration and Delta table upkeep, so the cost comparison must include that layer.

Ingestion and transformation pipelines

Raw files, CDC streams and source extracts are usually reshaped by Spark jobs before they land in curated Delta tables. Spark handles wide joins, schema drift and large backfills that a SQL analytics engine does not target. Check which of your current Databricks jobs write Delta tables, because those jobs keep needing a Spark cluster after ClickHouse takes over reporting. Ask whether ClickHouse will load from the curated layer or from raw files, since that decides how much Spark you keep.

Delta Lake website

Streaming and ML workloads

Structured Streaming jobs that maintain Delta tables, and feature preparation for model training, depend on Spark's batch and streaming APIs and its ML libraries. ClickHouse can ingest from Kafka, but it does not replace stateful stream processing or model training pipelines. Confirm which streaming jobs and ML feature pipelines read from Databricks today, and whether their owners need Spark or Flink instead. Keep these workloads on a separate cluster so a dashboard spike does not slow a training job.

Delta Lake repository

Notebooks and job orchestration

Databricks notebooks and Jobs schedule Spark tasks, pass parameters between them and track run history. Once the reporting layer moves to ClickHouse, these notebooks and job definitions still need a home, which means an orchestrator such as Airflow or Dagster plus a notebook environment such as Jupyter. Ask who will own scheduling, retries and alerting for each pipeline, and whether run logs must be retained for audit. This is recurring platform work that sits outside the query engine price.

Delta table maintenance

Delta tables need routine compaction, old file cleanup and vacuum runs so that storage and query performance stay predictable. These operations are typically Spark jobs, so they continue even when ClickHouse serves the queries. Confirm the retention window for time travel, because vacuum removes files outside it and reduces your ability to recover from bad writes. Schedule maintenance as a named, tested job with an owner, and record its outcome so that auditors and data owners can trace it.

Databricks Delta docs

What moving dashboard workloads to ClickHouse involves

The sequence turns Databricks SQL dashboards into ClickHouse queries running on your own servers, with data, replication, backups and BI connections each checked before users cut over.

  1. Inventory dashboards, queries and users

    The BI or analytics owner lists every dashboard, scheduled report, saved query and BI connection that reads from Databricks SQL warehouses, along with the tables each one touches, its refresh schedule and its user group. Engineering records which queries use Databricks-only functions or syntax. The step is done when every dashboard has an owner, a table list and a dialect flag, and the owners have agreed which workloads move first.

  2. Keep Delta tables in place

    The data team leaves Delta tables in their existing object storage bucket, since they are Parquet files with a transaction log that other engines can read. For the chosen dashboard tables, the team decides whether ClickHouse reads them directly through its table functions or loads a copy into MergeTree tables, and it documents that choice per table. The check is a row count and a sample of key aggregates that match between Databricks and the ClickHouse copy for each table in scope.

  3. Build a ClickHouse pilot with representative data

    Engineers deploy a single ClickHouse server or small cluster in your infrastructure, load representative tables and replay the top queries from the inventory. ClickHouse documents migration paths from Snowflake, BigQuery and Redshift, which can inform the loading approach even though this source is Databricks. Translating SQL dialect is usually the largest effort item, so the pilot should record every query that needs rewriting. The pilot is complete when the most-used queries return results that match Databricks and the team has measured their latency on realistic concurrency.

  4. Set up replication and ClickHouse Keeper

    Platform engineers configure ReplicatedMergeTree tables coordinated by ClickHouse Keeper, which replaces ZooKeeper. The replication guide recommends at least three Keeper nodes on dedicated hosts in production, with about 4 GB of RAM each, and a recovered replica syncs missing data from a healthy replica automatically. The check is a deliberate replica stop and restart in the pilot, after which the replica catches up without manual steps and queries still return consistent results.

  5. Configure backups and prove restores

    The operations team sets up BACKUP and RESTORE jobs to local disk, S3-compatible storage or Azure Blob Storage, covering full and incremental backups. The backup documentation notes that replication does not protect against human error or corruption, and warns that a backup never test-restored will probably not restore when needed. The step closes only after a restore into a spare cluster has been run, the restored row counts match and the runbook records the restore time the team observed.

  6. Connect authentication and reconnect BI tools

    Security and BI engineers configure ClickHouse access control and external authenticators, such as LDAP, Kerberos, X.509 certificates or JWT, to match your identity provider. They then repoint each BI tool connection, test row-level and group permissions against the Databricks setup, and rebuild the dashboards that cannot be copied directly. Reconnection is typically a large share of the effort, so the team should track it per dashboard. The check is that each dashboard renders the same figures for a sample of users and filters.

  7. Run both platforms in parallel during cutover

    For a defined set of dashboards, both Databricks and ClickHouse serve results while the business compares outputs on each refresh cycle. Discrepancies go back to the query rewrite or data load step, and the owners sign off dashboard by dashboard. The parallel period ends when every in-scope dashboard has matched output through its agreed cycles and no open discrepancy remains. Databricks SQL warehouse usage is monitored throughout so that the cost comparison uses measured figures.

  8. Retire warehouse usage and keep Spark for engineering

    Once cutover is signed off, the team stops scheduled warehouse refreshes and removes Databricks SQL endpoints for migrated workloads. Data engineering and machine learning jobs that still run on Spark remain where they are, and the page's related Databricks migration guides cover those. The step is done when no migrated dashboard reads from Databricks, the cost of the remaining Databricks usage is recorded, and the runbooks, backup schedules and upgrade plan for ClickHouse have named owners.

How the parts fit after a split architecture

The diagram starts with Spark writing Delta tables into object storage inside the customer's cloud account or data center, which is the trust boundary. Spark handles data engineering and the Delta tables stay in place as the source of truth. A load step copies the curated data into ClickHouse MergeTree tables on replicated nodes, with ClickHouse Keeper coordinating replicas and BACKUP writing to object storage. BI tools connect to ClickHouse for dashboards. Check that the load job's schedule, the lag between Delta and ClickHouse, and restore tests on a spare cluster are agreed before cutover.

Spark writes Delta tables, ClickHouse serves dashboards, all inside the customer boundary.

Questions buyers ask before switching

Can we move from Databricks SQL to ClickHouse without outside help?

Yes, a capable internal team can do it, but the effort depends on how many dashboards, BI connections and dialect-specific queries you have, and on whether anyone already runs ClickHouse in production. The ClickHouse documentation covers migrations from Snowflake, BigQuery and Redshift, and it describes export and load patterns that map onto object storage, but it does not cover Databricks SQL specifically, so you should expect some translation and testing work of your own. Ask your team to inventory every query, dashboard and BI extract before estimating, since that inventory drives most of the effort. If the team lacks ClickHouse operations experience, the cost of learning on production workloads is often the largest hidden item, and an implementation partner such as DeployOpen can plan, implement and document the work under a written, fixed scope.

How long does a ClickHouse pilot take and what makes it longer?

The duration depends on scope rather than on a standard timeline, so ask for a written plan before committing. The main drivers are the number of tables and dashboards to reproduce, how much history must be loaded, how many SQL dialect differences appear in your reporting queries, and how many BI tools need reconnecting. Access to representative data and an agreed definition of pilot success also matter, because the ClickHouse production guidance recommends a pre-production environment with representative data and queries before any cutover. Parallel running with Databricks SQL, which many teams want for confidence, adds time but reduces risk. Ask any vendor or partner to break the pilot into phases with exit criteria for each.

What skills and on-call capacity does a self-hosted ClickHouse cluster need?

You need people who can write and tune SQL, operate the servers and manage incident response, and the exact split depends on whether you run it on Kubernetes or on virtual machines. ClickHouse replication relies on ClickHouse Keeper, and the replication guide recommends at least three Keeper nodes on dedicated hosts in production, so someone must own that layer. Routine work includes monitoring, capacity planning, applying upgrades on a schedule, managing users and external authentication, and running backups and restore tests. Expect on-call coverage for node failures and query overload, which Databricks handles partly on your behalf today. Confirm with your platform team who will carry these duties before the decision, because unowned operations are a common reason self-hosted analytics stalls.

Can our Delta tables stay in our own bucket if we move dashboards to ClickHouse?

Yes, Delta tables are Parquet files plus a transaction log in cloud object storage, and that data can remain where it is while ClickHouse reads it. Delta Lake is an Apache-2.0 Linux Foundation project, and the Delta Lake documentation lists Trino, Spark and other engines that read it, so the storage layer does not have to move. ClickHouse can query data in object storage through its S3 table functions, but the cleanest pattern for dashboards is usually to load a curated set of tables into native MergeTree tables, because that is what gives you fast, concurrent reporting. Check that your Delta tables use features your reading engine supports, and confirm access controls on the bucket, because data then sits in two places that both need governing.

How do ClickHouse upgrades and LTS support windows work?

Stable releases ship roughly monthly, and the three latest stable releases receive diagnostics and bug fix backports, according to the ClickHouse production FAQ. LTS releases ship twice a year and are supported for one year after release, so most production teams should choose between tracking stable with a regular upgrade cadence or standing on an LTS line and upgrading once a year. The ClickHouse security policy lists which versions currently receive security updates, and any version outside that list is unsupported, so check it before picking a line. Upgrade on a pre-production environment with your own data and queries first, and read the changelog, because minor backward-incompatible changes can occur. Budget the upgrade cycle as a recurring cost in your operating model.

How should we test ClickHouse backups before we rely on them?

Test restores on a spare cluster on a regular schedule, because the ClickHouse backup documentation warns that a backup never test-restored will probably not restore properly when needed. ClickHouse BACKUP and RESTORE support full and incremental backups of tables, partitions or databases to local disk, S3-compatible storage or Azure Blob Storage. Replication alone does not protect against human error or corruption, so a dropped table on one node is replicated to the others, which is why backups are a separate control. A sound test records the restore time, checks row counts and a sample of queries against known results, and confirms that access rights and external authentication are restored too. Document the results as evidence for your auditors, and ask any partner for a written restore test plan.

Can Databricks SQL and ClickHouse run side by side during the transition?

Yes, many teams run both during cutover, with dashboards moved in groups and results compared before each group switches. Keep Databricks SQL warehouses serving existing BI until the ClickHouse reports match on agreed sample queries and refresh schedules. Keep Spark on Databricks or self-hosted Spark for data engineering and machine learning, since ClickHouse is built for analytical SQL rather than for replacing those pipelines. Running both adds cost for the duration, mainly for Databricks compute and the ClickHouse cluster, so set a decommission date for each report group. Define which system is the source of truth for each metric during the overlap, or reports will disagree and erode trust.

What does running both platforms cost compared with Databricks alone?

Costs fall into the Databricks charges you keep, the cloud compute and storage for ClickHouse, the people who run it, and the one-time migration work. Databricks prices usage in DBUs billed per second, while cloud storage and networking are billed by your cloud provider, so the DBU layer is the part you remove only for workloads that move off Databricks. ClickHouse server is Apache-2.0 licensed, so the software itself has no license fee, but you pay for hosts, storage, backup targets and staff time. Ask for a quote that separates one-time migration effort, recurring infrastructure, recurring operations and any support contract. Drivers include query volume, concurrency needs, data retention and how many people must be on call.

How DeployOpen works on this

DeployOpen plans and implements self-hosted ClickHouse for the dashboard and reporting workloads that move off Databricks SQL, inside your own cloud account or data center. Data engineering stays a separate decision, and the written scope records which Databricks jobs remain on Spark and which reporting queries move.

How we scope

  • Inventory the Databricks SQL warehouses, dashboards, scheduled queries and BI connections that would move to ClickHouse.
  • Confirm which Delta tables stay in your object storage and which are copied into MergeTree tables.
  • Agree in writing which Spark pipelines, Jobs and notebooks stay on Databricks or move to self-hosted Spark.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Deploy ClickHouse in your infrastructure with ReplicatedMergeTree tables and a ClickHouse Keeper ensemble on dedicated hosts.
  • Connect SSO or external authenticators such as LDAP, Kerberos or JWT, and apply role-based access control to reporting users.
  • Load representative tables from Delta or Parquet files and validate query results against current Databricks SQL outputs.
  • Test concurrency with real dashboard refresh patterns and document the cost of the compute and storage you run.

How we hand over

  • Deliver architecture diagrams, runbooks for upgrades, backup and restore, and configuration documentation for your team.
  • Run restore tests on a spare cluster and record the results, since an untested backup is unlikely to restore reliably.
  • Document the evidence your compliance and security teams need to review access control, audit logging and data handling.
  • Walk your engineers through the cutover plan and the parallel-run period, including BI reconnection steps.

How we support

  • Ongoing support, version upgrades and continuous testing are available as retainers after handover.
  • Track ClickHouse release lines and security support status so upgrades follow your change process, reading changelogs first.
  • Review query performance, storage growth and replica health as dashboard usage changes over time.
  • Agree the retainer scope in writing, covering which environments, systems and response expectations are included.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.