Databricks or Trino: which fits your lakehouse SQL workload?
Databricks fits teams that want one managed platform for SQL warehouses, notebooks and pipelines, while self-hosted Trino fits teams whose main need is interactive SQL and BI over tables they already own in object storage. If you are facing a renewal, a DBU bill or a data residency review, the choice is less about raw query speed than about who operates the stack and where it runs. The decision turns on four questions: how many concurrent BI users you must serve, how much platform engineering your team can staff, whether data engineering and ML stay on Spark, and how much control over hosting your organization requires.
Start with concurrency and interactivity. Databricks SQL warehouses scale compute as a managed service, and Trino scales by adding workers to a cluster you operate, so you need to test your peak dashboard load before deciding. Ask a Trino proposal to show how the coordinator and workers will be sized, and whether a dedicated coordinator is planned for larger clusters as the Trino deployment documentation recommends. Then check fault tolerance: Trino's fault-tolerant execution is off by default, and the TASK retry policy needs an exchange manager spooling to S3, Azure Blob Storage, Google Cloud Storage or HDFS. Those settings are yours to configure and maintain.
Staffing is the variable most teams underestimate. Trino covers interactive SQL well, but it does not replace Spark for large batch transformations, streaming or ML feature work, so most lakehouses keep Spark beside Trino. Confirm with your data engineering lead whether those workloads stay on Spark, and whether you will need a table catalog such as an Iceberg REST catalog or Hive Metastore to run Trino on the same Delta or Iceberg tables. Use the Trino Iceberg connector documentation to check which catalog options your team can support.
Which option fits which scenario
This table maps common Databricks vs Trino situations to the better fit and the condition that decides it. Read each row against your own workload mix, staffing and hosting rules, because Trino is a query layer and not a complete replacement for the Databricks platform.
| Scenario | Better fit | Condition that makes it so |
|---|---|---|
| Dashboard-heavy BI on Delta tables | Trino with Delta Lake connector | Queries are mostly SQL reads, the tables already sit in your object storage, and BI tools can connect over JDBC or ODBC |
| Mixed SQL and ML teams | Databricks or Spark plus Trino | Data scientists need notebooks, feature pipelines and distributed training, so Spark stays for those jobs and Trino serves analysts |
| Small platform team with no on-call capacity | Keep a managed service or reduce scope | Trino, its catalog and its object storage all need patching, scaling and incident response that someone must own around the clock |
| Federated queries across a commercial warehouse and a lakehouse | Trino | Trino's Snowflake, BigQuery and Redshift connectors can read the warehouse while Iceberg or Delta tables stay in your storage |
| Heavy data engineering and large batch transforms | Apache Spark, with Trino for serving | Long ETL jobs need retries and shuffle-heavy processing, so Spark usually runs them while Trino handles the query layer |
| Strict in-account or air-gapped hosting | Trino and Spark on your own infrastructure | Your policy requires that no control plane sits outside your network, which Databricks does not offer in the same form |
| Fault-tolerant long batch queries | Trino with TASK retry policy and exchange spooling | Fault-tolerant execution is off by default, and the TASK policy needs an exchange manager spooling to S3, Azure Blob Storage, Google Cloud Storage or HDFS |
Where the data sits and who operates the engine
In a self-hosted Trino design, the table files, the query engine, the sign-in path and the access rules all sit under your control. Databricks keeps part of its control plane in its own account, so the questions below are about which pieces you own and which evidence you must produce yourself.
Delta and Parquet in your bucket
Delta tables are Parquet data files plus a transaction log in cloud object storage. If the bucket and the log are in your account, Trino's Delta Lake connector can read the same files that Databricks SQL reads. Check that the table paths, log files and storage permissions are in your own account and that no table depends on a Databricks-managed location before you plan a cutover. Confirm this for each table, not for the platform as a whole.
Delta Lake siteControl plane location
Databricks runs its control plane in the Databricks account, even when compute runs in your cloud account, so workspace metadata, job definitions and some catalog state live outside your environment. Self-hosted Trino places the coordinator, workers, catalog configuration and logs in infrastructure you operate. Map every component that holds metadata about your data and record which account, region and team owns it.
Databricks Delta docsIdentity and sign-in options
Trino supports password file, LDAP, OAuth 2.0, Kerberos, certificate and JWT authentication. Choose the method that matches your directory and confirm how service accounts for BI tools and scheduled jobs are issued and rotated. Test session expiry and the behavior when the identity provider is unavailable, because a fallback login path can become the weakest route into the cluster.
Trino security docsFile-based, Ranger or OPA rules
Trino access control can use file-based rules, Apache Ranger or Open Policy Agent. File rules are simple to version but grow hard to audit at scale. Ranger and OPA centralize decisions across engines, which matters if Spark reads the same tables. Document which rule source decides table, column and row access, and test that a denied user cannot reach the same data through another catalog or a BI extract.
Evidence you produce yourself
A compliance assessment asks for access reviews, change records, backup and restore results, logging and key management. Trino, the object store and the catalog each generate some of this, but none generates it all. Plan who exports query logs, who reviews access grants and where the evidence is kept. Independent auditors and certification bodies issue attestations, so ask them early which controls and artifacts they expect.
How Trino reads the same Delta and Iceberg files
Trino does not load data into storage of its own. It queries files where they already sit, through connectors, so a self-hosted lakehouse that replaces Databricks SQL warehouses needs two things beyond Trino itself: object storage that holds the table files and a table catalog that tells Trino which tables exist and where their metadata lives. The catalog options Trino's Iceberg connector supports include an Iceberg REST catalog, Hive Metastore, AWS Glue and Nessie. Before you pick one, confirm which catalog your existing Databricks tables were registered in, because the catalog decides how Trino finds the same Delta tables and whether permissions have to be rebuilt elsewhere.
The Delta Lake connector reads and writes Delta tables in place, and the Iceberg connector covers time travel, schema evolution, INSERT, UPDATE, DELETE and MERGE. The Iceberg connector reads and writes Parquet, ORC and Avro and supports Iceberg format versions 1 and 2, with version 3 still marked experimental. Delta's UniForm feature lets Iceberg and Hudi clients read Delta tables, which can help if some consumers cannot use the Delta connector. Test each write path against a copy of a production table before you rely on it, since MERGE and DELETE behavior on large partitions is where engine differences show up. The supplied facts list Delta Lake 4.4.1 and Trino release 484 as the current releases, so check the Trino release notes and the delta-io/delta release notes for compatibility changes before you upgrade either one.
Keep the catalog, connector and engine versions in one pinned change set, and test the upgrade against the same tables Spark jobs write. A Trino upgrade can change how it reads a table format version, and a Delta protocol change can affect what a Trino connector accepts. Record the versions you run in your change log so that auditors and data owners can see which engine last wrote each table.
How a query flows through a self-hosted Trino lakehouse
A BI tool sends SQL to the Trino coordinator, which plans the query and hands work to the workers. The workers read Delta or Iceberg data files directly from object storage inside your network, while a catalog service supplies table metadata and file locations. An optional Spark job writes to the same tables through the same catalog, so both engines see one copy of the data. Check that every hop stays inside the trust boundary, that the catalog is reachable only by the engines, and that object storage permissions are scoped to the table locations each engine needs. This diagram is illustrative, not a reference architecture.
Illustrative flow: BI queries, Trino workers, catalog and an optional Spark writer share one object store.
Concurrency and fault tolerance: where Trino needs tuning
Trino handles interactive SQL well, but concurrency, coordinator capacity and failure handling are settings you own once it replaces Databricks SQL warehouses. Each card below is a decision or check that shapes whether BI users keep their dashboards running during peak hours and long batch jobs.
Concurrent dashboard users
BI dashboards send many small queries at the same moment, which is a different pattern from a few long batch jobs. Databricks SQL warehouses scale their compute for you, while on Trino you set resource groups and queue limits so one heavy dashboard refresh does not starve everyone else. Ask your BI team for their peak number of simultaneous queries and their refresh schedule, then load-test that exact pattern on your own data instead of relying on generic throughput figures.
Coordinator sizing and separation
The coordinator plans queries and tracks workers, so its memory and CPU limit how many queries run well at once. Trino's deployment guide recommends a dedicated coordinator for larger clusters, which keeps query planning apart from worker tasks. Size the coordinator from your measured concurrency and plan for a second environment for testing upgrades before production.
Deployment guideKubernetes deployment with Helm
Many teams run Trino on Kubernetes using the Helm chart described in the deployment documentation, which makes scaling workers and rolling upgrades repeatable. Container orchestration adds its own operating burden, including node pools, resource requests, persistent volumes for logs and network policy. Confirm your platform team already runs Kubernetes reliably before choosing this path over virtual machines.
Java runtime requirement
Trino needs a 64-bit Linux host and a 64-bit Java runtime. The current minimum is Java 25, specifically 25.0.1 or later, so JVM versions must be planned alongside the Trino release you deploy. Add the JDK upgrade to your patch calendar, test each Trino release against it in staging, and confirm that your base images and security scanning tools support the same runtime.
QUERY retries for short queries
Fault-tolerant execution is off by default. The QUERY retry policy restarts a failed query as a whole, which suits short interactive dashboard queries that finish in seconds or minutes. Users see a retry rather than a failed dashboard, and no extra spooling storage is required. Test which of your dashboards are short enough that a full restart costs little.
TASK retries and spooling storage
The TASK retry policy recovers individual tasks, which is the better fit for large batch queries that would be expensive to restart. It requires an exchange manager that spools intermediate data to S3, Azure Blob Storage, Google Cloud Storage or HDFS, so you must provision and pay for that storage, set its retention and secure it like the lakehouse itself. Confirm the spooling bucket and its lifecycle rules before enabling it.
Fault-tolerant execution docsWhat each option costs to run, by component
How is Databricks billed, and what does the DBU layer add to the cloud bill?
Databricks bills you for usage in Databricks Units (DBUs), a normalized unit of processing power, charged per second on pay-as-you-go or committed-use contracts. Your cloud provider separately bills the virtual machines, storage and networking that run underneath, so the total is the DBU charge plus the cloud charge. The DBU rate depends on the workload type and tier you run, so ask for the rate sheet that applies to your contract and region. Committed-use discounts reduce the DBU rate but still require you to forecast volume. Check which cloud resources the quote excludes, because storage and data transfer usually appear on the cloud invoice rather than the Databricks one.
What does self-hosted Trino cost to run each month?
Running Trino moves the cost from the DBU line to infrastructure and people. The recurring parts are compute for the coordinator and workers, object storage for the Delta or Iceberg files, a table catalog such as an Iceberg REST catalog or Hive Metastore, and the Kubernetes or virtual machine layer that hosts them. Trino is Apache-2.0 licensed, so there is no per-query software fee. The main cost drivers are cluster size and hours, how long data is retained, and whether you run fault-tolerant execution, which needs a spooling store on S3, Azure Blob Storage, Google Cloud Storage or HDFS. Ask any vendor or partner to itemize each of these components separately.
What object storage and catalog costs remain after leaving Databricks?
Your data already sits in cloud object storage in Delta Lake form, so the storage charge usually stays about the same after migration. Delta tables are Parquet files plus a transaction log, which means the bytes do not need to move for Trino to read them. What changes is the catalog: Databricks Unity Catalog is replaced by a self-hosted catalog such as an Iceberg REST catalog, Hive Metastore or another option you choose, and that service must be run, backed up and secured. Ask for the expected storage footprint, request and egress assumptions, and whether any tables will be copied into a second format during cutover, since copies double storage for the overlap period.
Does Trino remove the need for Spark, and what does Spark cost?
Trino is strongest at interactive SQL and BI, while data engineering, large batch transformations and ML pipelines usually still run on Apache Spark, which is also Apache-2.0 licensed. Keeping Spark means you pay for a second compute engine, its cluster capacity, job orchestration and the engineers who maintain both. Some teams consolidate onto Spark for everything, and others keep Trino for dashboards only. The cost difference depends on how many pipelines you have and how often they run. Ask any implementation partner which workloads they expect to move to Trino, which stay on Spark, and what the resulting cluster sizing is for each.
Who runs Kubernetes or VMs, upgrades and on-call for a self-hosted stack?
In a self-hosted setup your team, or a partner you contract, owns the operations: provisioning the Kubernetes cluster or virtual machines, patching the operating system, upgrading Trino and Spark, monitoring, backups and on-call rotation. Trino publishes frequent releases, and the deployment docs require a 64-bit Linux system and a supported 64-bit Java runtime, so upgrade planning is recurring work. Operations cost tends to rise with the number of clusters, the number of environments and the hours you must cover, and falls with automation such as Helm-based deployment and infrastructure as code. Ask for a written split of responsibilities, upgrade frequency and the incident response hours included.
What is the one-time migration effort, and what recurs afterward?
One-time costs include discovery of queries and dashboards, translating Databricks SQL to Trino dialect, reconnecting BI tools, building the catalog and security layer, performance testing and running both platforms during cutover. Recurring costs include infrastructure, licenses for any commercial tools you keep, staff time for upgrades and support, and on-call coverage. The biggest variables are the number of queries and dashboards, the complexity of Unity Catalog permissions to rebuild, and how many pipelines remain on Spark. Ask for the migration effort split into discovery, translation, testing and cutover, and state which items recur after go-live.
What should I ask for in a quote for a Databricks to Trino move?
Ask for each cost component listed separately: DBU spend you expect to remove, cloud compute and storage you expect to keep, Trino and catalog infrastructure, Spark capacity that stays, and the migration scope. Request the assumptions behind each figure, including cluster hours, data volumes, retention and concurrency targets. Confirm which Databricks features are out of scope, such as notebooks, Jobs or Unity Catalog governance, and who owns each one after handover. For any fixed-scope engagement, ask for scope, deliverables and timelines in writing before work starts. DeployOpen does not publish a price list, and a quote follows from that written scope.
Which costs are hardest to predict before a migration starts?
The hardest costs to predict are the ones tied to usage patterns you have not measured yet: concurrency peaks for BI, the share of pipelines that Trino can replace, the time spent rebuilding permissions, and the operations effort your team can absorb. Run a pilot on a representative set of dashboards and record cluster hours, query runtimes and failure rates before you commit. Your cloud provider's cost reports will show storage and egress trends, and the Databricks usage reports will show DBU consumption by workload. Use those measurements, not estimates, as the basis for a quote.
How a move from Databricks SQL to Trino usually runs
The sequence moves BI and interactive SQL from a Databricks SQL warehouse to Trino on the same Delta tables in your own object storage, with the warehouse retired only after results match.
Inventory SQL, BI connections and permissions
Your team lists every query source that touches the SQL warehouse: dashboards, scheduled reports, BI tool connections, service accounts and ad hoc users. For each table, record which Unity Catalog grants apply, since those permissions must be recreated in the new stack. The step is done when you have a written list of tables, consumers and the access rules each one depends on, reviewed by the data owners who will sign off on cutover.
Keep Delta tables in your bucket
The Delta tables already sit in Parquet files with a transaction log in your cloud object storage, so the data does not need to be copied. Confirm that the storage paths, bucket policies and encryption settings are under your own account and that no table depends on a managed location you cannot read directly. The check is that each in-scope table can be listed and read from the storage path with credentials your team controls.
Stand up a catalog and the Delta Lake connector
Deploy a self-hosted Trino cluster with a coordinator and workers, then configure its Delta Lake connector against the same storage paths. Choose a metastore or catalog to hold table definitions, since Unity Catalog is no longer the source of truth once you leave it. Your platform team owns the deployment and the catalog, and the step is complete when every in-scope table returns the same row counts as the warehouse.
Translate SQL dialect differences and test
Databricks SQL and Trino share most of the ANSI SQL used in reports, but functions, date handling, identifiers and some DDL differ. Your analysts take the query inventory, rewrite the differing statements and run each against both engines. Compare results for representative periods and edge cases such as nulls, time zones and decimal precision. The step closes when every critical query returns matching results or has a documented, approved difference.
Reconnect BI tools to Trino
Point each BI tool at the Trino endpoint using the authentication method your security team has approved, such as LDAP, OAuth 2.0 or certificates, and map existing row and column restrictions to Trino access control, whether file-based, Apache Ranger or Open Policy Agent. Confirm that the BI tool's own caching and extract behavior still meets the freshness expected by report owners. The step is done when each dashboard renders correctly for test users with the right visibility.
Run both engines in parallel during cutover
Keep the Databricks SQL warehouse and Trino running side by side while dashboards and scheduled reports are switched in groups. Compare outputs on each run and record any drift, performance issues or access errors. Notebooks, Spark jobs and data engineering pipelines stay on Spark throughout, because Trino covers interactive SQL and BI, not batch transformation. The step is complete when consumers have used Trino for an agreed validation period without unresolved defects.
Retire the warehouse endpoint after validation
Once every in-scope consumer runs on Trino and the comparison log is signed off, stop the Databricks SQL warehouse endpoint and remove its scheduled queries and service principals. Archive the final query inventory, access mappings and validation results so the decision can be reviewed later. Confirm billing has stopped for the endpoint in your cloud and Databricks accounts. The step is done when the endpoint is off and the documented record is stored with the data owners.
Why data engineering and ML usually still need Spark next to Trino
Trino is a distributed SQL query engine, and it is strongest for interactive analytics: BI dashboards, ad hoc queries and analysts reading Delta or Iceberg tables in the same object storage that Databricks SQL uses today. Heavy transformations, streaming pipelines, notebook-driven exploration and ML training are a different workload shape, and they usually still run on Apache Spark, which is also Apache-2.0 licensed, working with Delta Lake. The Delta Lake project lists both Spark and Trino among its supported engines, so a self-hosted stack can keep the same tables and give each engine the work it fits. The Trino Delta Lake connector reads and writes these tables, but it does not replace Spark's batch and streaming jobs or its Python and Scala APIs for feature engineering.
The condition matters. A team with only BI and ad hoc SQL, and no pipelines that must be rebuilt or streamed, may not need Spark at all, and running Trino alone keeps the stack smaller. Check this against the current Databricks workload inventory before deciding: list every job, notebook and scheduled pipeline, and tag each one as SQL reporting, batch transformation, streaming or ML training. Anything outside the SQL column is the Spark scope.
A team without Spark skills should price that gap into the decision. Running Spark yourself means someone owns cluster sizing, executor tuning, job failures, dependency management and upgrades, along with an orchestrator for scheduled jobs. Those are recurring staff costs that replace the Databricks platform fee, and they do not disappear when the DBU bill does. Ask the team which pipelines they can run and debug unaided today, and confirm with an implementation partner or your own platform engineers how much of that work to plan for before cutover.
Questions buyers ask before switching from Databricks SQL
How much effort does switching Databricks SQL to Trino take?
The effort depends mostly on how many tables, dashboards and SQL statements depend on Databricks-specific features, and on whether the Delta tables already sit in object storage you control. If the Delta files are in your own bucket, Trino's Delta Lake connector can read the same tables, so the main work is the catalog, access control and query translation. The effort rises when teams rely on Unity Catalog permissions, Databricks SQL dialect functions, or workflows that also use Spark. A written inventory of tables, queries, BI connections and permissions is the best way to size the work. Ask any partner to base the estimate on that inventory, not on a generic figure.
Can our own team migrate from Databricks SQL without outside help?
A team with strong Trino, SQL and object storage skills can often run a pilot alone, but production cutover usually needs experience in catalogs, authentication, fault-tolerant execution and BI reconnection. Trino's documentation covers deployment on Linux with a coordinator and workers, Kubernetes with Helm, and authentication options such as LDAP, OAuth 2.0 and certificates. Your team must also own the Iceberg REST catalog or Hive Metastore that Trino needs, because Trino queries data in place rather than storing it. Consider whether your engineers have time for on-call and upgrades, since Trino releases arrive several times a year. A fixed-scope engagement can cover the parts your team lacks, with scope and deliverables agreed in writing before work starts.
How long does a Databricks SQL to Trino migration take?
The timeline depends on the scope of the workloads and on your environment, including network paths, identity systems, change control and the number of BI tools. A single dashboard domain on well-documented Delta tables will move far faster than a company-wide estate with many shared views and row-level rules. Run the pilot against a representative set of queries, then plan a period where both systems run in parallel so results can be compared. Ask any implementation partner to state the timeline in the written scope, with the assumptions behind it, and check those assumptions against your own inventory.
What does the migration need from data engineers and BI owners?
Data engineers need to own the table catalog, the object storage layout, the Delta Lake connector configuration and the pipelines that still write data. BI owners need to confirm which dashboards, semantic models and scheduled reports depend on Databricks SQL endpoints, and to test the translated queries against known results. Both groups should agree on how to handle Databricks SQL functions that have no direct Trino equivalent, and on who signs off on performance and result accuracy. Spark-based pipelines usually stay in place, so data engineers must keep those jobs running and connected to the same tables.
Can Trino query Snowflake, BigQuery or Redshift during a migration?
Yes, Trino includes connectors for BigQuery, Redshift and Snowflake, so it can read a commercial warehouse and a self-hosted lakehouse side by side while you move workloads. The Snowflake connector can query and create tables in one external Snowflake account per catalog and uses Apache Arrow when reading. Each connector has its own credentials, network path and cost, and reads against a commercial warehouse can still incur that vendor's charges, so check the billing model before running large federated queries. Confirm connector behavior and limits against the Trino connector documentation for your Trino version.
Does Trino's fault tolerance replace warehouse concurrency guarantees?
No, not in the same way. Trino's fault-tolerant execution is off by default and is enabled with a QUERY or TASK retry policy, and the TASK policy, which the documentation recommends for large batch queries, needs an exchange manager that spools to S3, Azure Blob Storage, Google Cloud Storage or HDFS. This helps queries recover from worker failures, but it does not promise a fixed level of concurrency for dashboards. Concurrency depends on cluster sizing, resource groups, workload isolation and the storage layout of your tables. Load-test your BI workload on your hardware or cloud account and set resource group limits before you commit to a service level for business users.
How DeployOpen helps teams evaluate and move to Trino
DeployOpen plans, implements, integrates, hardens, backs up and documents self-hosted Trino and Apache Spark stacks inside your own cloud accounts, data centers or air-gapped networks. For a Databricks SQL replacement, the work usually starts with the object storage layout and table catalog: which Delta Lake or Iceberg tables Trino will read, where the catalog metadata lives (an Iceberg REST catalog, Hive Metastore or AWS Glue), how the Trino coordinator and workers are deployed (including whether you use the Helm guide for Kubernetes), and how Spark jobs keep writing to the same tables. Each of those decisions affects cost, access control and the exit path, so they belong in the evaluation before any cutover date is set.
The security side covers the resulting platform, not only the Trino binary. DeployOpen can review the authentication method you select (LDAP, OAuth 2.0, Kerberos, certificates or JWT), the access control model (file-based, Apache Ranger or Open Policy Agent), the service accounts that read object storage, the catalog permissions that replace Unity Catalog grants, and the audit trail for queries. DeployOpen runs security testing against the deployed stack and prepares the configuration records, access reviews and logs that your compliance team and independent auditors will ask for. DeployOpen does not issue audit reports or certifications; those come from the auditors and certification bodies you engage.
Most engagements are fixed-scope. Scope, deliverables, timelines and the responsibilities of each party are agreed in writing before work starts, and a quote follows from that written scope, so ask for the scope document first. Ongoing support, upgrades and continuous testing are available as a retainer if your team does not want to carry Trino release upgrades and on-call duty alone. To discuss a scoped evaluation of your Databricks SQL workloads, contact DeployOpen with your current cluster sizes, table formats, BI tools and compliance requirements.

