Home / Notes

Databricks cost does not go away, it moves

2026-11-08 · Data Engineering · Edward Plata

Most new platform features remove one cost. Few remove it from the bill. The cost goes to a different line, often one that no team owns. A feature that makes a mistake cheap to fix can make routine work expensive to run.

In October and November 2026, four community threads described this pattern. Each one is a single source and gives opinions, so I quote them as opinions. For each thread I checked the mechanism in the vendor docs. This note covers four mechanisms and gives a checklist to find where your cost went.

Liquid clustering moves cost to maintenance

With liquid clustering, a wrong table layout is cheap to fix. The Databricks docs say that when you change clustering keys, "subsequent OPTIMIZE and write operations use the new clustering approach, but existing data is not rewritten" (Databricks, liquid clustering).

The layout work still happens, but OPTIMIZE does it on compute that you pay for. The same page says: "For tables experiencing many updates or inserts, Databricks recommends scheduling an OPTIMIZE job every one or two hours." The general OPTIMIZE page gives a lower starting point. It says to start "running OPTIMIZE on a daily basis, preferably at night when spot prices are low". It also names the trade-off: run it more often and you "incur a higher cost because of the increased resource usage" (Databricks, OPTIMIZE).

Predictive optimization adds a second path. It "automatically runs OPTIMIZE, VACUUM, and ANALYZE on Unity Catalog managed tables". It "is enabled by default for accounts created on or after November 11, 2024", and "Your account is billed for this compute using a serverless jobs SKU" (Databricks, predictive optimization). The clustering page adds: "When using Predictive optimization, Databricks recommends disabling any scheduled OPTIMIZE jobs." If you keep the old schedule and also turn on predictive optimization, two systems do the same maintenance.

In the r/databricks thread on liquid clustering, the author wrote that "the cost didn't go away, it just moved". The replies did not all agree. One engineer wrote that a repeat OPTIMIZE "only rewrites the new bits that are affected" and "runs in seconds". Another wrote that most tables do not need hourly runs, but agreed that "the cost didn't disappear, it moved to maintenance compute, so tracking it per table makes sense."

Check: maintenance cost per table. Predictive optimization records each operation in system.storage.predictive_optimization_operations_history. That table has catalog_name, schema_name, table_name, operation_type and usage_quantity in estimated DBUs (Databricks, predictive optimization system table). For scheduled OPTIMIZE jobs, find the job in system.billing.usage through usage_metadata.job_id.

Serverless moves cost to the startup choice

Serverless jobs have two modes. The docs say that standard mode "uses less compute to reduce costs, making it suitable for workloads that can tolerate slightly higher startup latency of 4 to 6 minutes". With performance optimized mode, "the job starts and runs faster" and "is designed for time-sensitive workloads". Then: "Both modes use the same SKU, but standard performance mode consumes fewer DBUs" (Databricks, serverless jobs).

In the r/databricks thread on compute management, the author asked why serverless pipelines wait for compute. One reply explained the gap: in standard mode "there is no warm pool of compute waiting for a job". A fast start needs machines that wait, and someone pays for them. Another engineer asked why anyone pays "for serverless for scheduled prod workloads". That team uses serverless for development and dedicated compute for scheduled work. That engineer also wrote that in their tests "serverless was reliably 20% more expensive". Another user disagreed and said serverless "will save you money" over time. Both are single opinions. Neither is a benchmark.

Two replies gave the same practical advice. If you run many small pipelines, combine them, so that you wait for startup once and not many times.

Check: the compute mode for each job class. Group jobs by their latency need: interactive, time-sensitive scheduled, and batch that can wait. Then make sure that each group uses the mode it needs. A nightly batch job on performance optimized mode pays for a fast start that it does not use.

Apps move cost to idle hours

The docs say: "Apps are billed per hour of compute time while running, based on provisioned capacity" (Databricks Apps). The compute size page lists the default size as Medium at 0.5 DBU per hour (Databricks Apps compute size). An app that runs all day bills all day, even when no user opens it.

In the r/databricks thread on Databricks Apps, one engineer wrote: "The fact that they don't scale to zero makes them a little bit useless." The same engineer added: "Leaving them always on is just not worth the money". Other replies said that a newer Genie App Builder version can scale to zero. I did not find that in the docs pages I read, so I do not rely on it here.

The common workaround in the thread was a scheduled job that starts and stops the app. The CLI supports this with databricks apps start and databricks apps stop (Databricks CLI, apps commands).

Check: idle hours per app. The Apps monitoring page gives a cost query that filters billing_origin_product = 'APPS' and groups by usage_metadata.app_id and usage_metadata.app_name. Compare the billed hours with the hours when people use the app.

Zero-copy shares move query cost to the consumer

Sharing without a copy removes the ingest pipeline. It does not remove compute. The Snowflake docs say that with Secure Data Sharing "no actual data is copied or transferred between accounts". They also say: "The only charges to consumers are for the compute resources (i.e. virtual warehouses) used to query the imported data." Providers "continue to pay for storage" (Snowflake, data sharing).

Delta Sharing on Databricks is similar, with more cases. The docs say that sharing "does not require data replication". For views, materialized views and streaming tables, the recipient pays for compute in most setups. With some open sharing connectors, the provider pays. Cross-cloud or cross-region shares can also bring egress fees from the cloud vendor (Databricks, OpenSharing).

The r/snowflake thread on Workday data had the title: "The pipeline cost goes away, but I think it just moves to whoever queries it". Read it with care. In the replies, the author said they work at a vendor, Seemore, which wrote the linked blog. A Snowflake employee replied that a dashboard on shared data costs the same as a dashboard on ingested data. That employee also said that the query result cache does not wake the warehouse if the source has not changed. The docs support the general point about idle time. Warehouses bill "per-second billing (with a 60-second minimum each time the warehouse starts)", and auto-suspend is on by default (Snowflake, warehouses).

Both replies can be correct. The total cost may not grow. But the cost moves from the data team's pipeline budget to the warehouse of the team that queries. That team may not know that it now owns the cost.

Check: who pays for queries on shared data. Name the warehouse or SQL endpoint that serves each share, and name its owner.

A cost checklist

Each line below is a place where cost can arrive after a feature removes it from somewhere else. The system.billing.usage columns are from the billable usage table docs.

LineWhat to measureWhere to lookWho owns it
IngestDBUs per pipeline or connector, per daysystem.billing.usage, filter billing_origin_product in (DLT, LAKEFLOW_CONNECT, JOBS), group by usage_metadata.dlt_pipeline_id or usage_metadata.job_idThe pipeline owner
TransformDBUs per job, and the compute mode of each jobsystem.billing.usage, billing_origin_product = 'JOBS', group by usage_metadata.job_idThe team that owns the job
MaintenanceEstimated DBUs per table and per operation typesystem.storage.predictive_optimization_operations_history, and scheduled OPTIMIZE jobs in system.billing.usageThe table owner
QueryDBUs per SQL warehouse; on Snowflake, credits per warehouse that reads sharessystem.billing.usage, billing_origin_product = 'SQL', group by usage_metadata.warehouse_idThe team that queries
IdleBilled hours with no use: apps, warm pools, warehouses with long suspend timessystem.billing.usage, billing_origin_product = 'APPS', group by usage_metadata.app_idThe app or warehouse owner

The billing docs explain why the product column matters: "data quality monitoring, predictive optimization, and serverless workflows are all billed under the same serverless jobs SKU." Group by billing_origin_product, not only by sku_name.

A first query puts a list price on each product line. It follows the join in the Apps monitoring docs and uses the system.billing.list_prices columns from the pricing table docs. List price is not your contract price, so use it to compare lines, not to forecast the invoice.

-- DBUs and list-price cost per product line, last 30 days
SELECT
  us.billing_origin_product,
  SUM(us.usage_quantity) AS dbus,
  SUM(us.usage_quantity * lp.pricing.effective_list.default) AS list_cost
FROM system.billing.usage AS us
LEFT JOIN system.billing.list_prices AS lp
  ON lp.sku_name = us.sku_name
  AND us.usage_start_time BETWEEN lp.price_start_time
                              AND COALESCE(lp.price_end_time, NOW())
WHERE us.usage_unit = 'DBU'
  AND us.usage_date >= DATE_SUB(NOW(), 30)
GROUP BY ALL
ORDER BY list_cost DESC;

Run it once a month. If a line grows after you turn on a feature, the feature did not remove the cost. It moved the cost to that line.

What to take away

  • When a feature makes one task cheap, find the task that now runs more often or on other compute.
  • Liquid clustering moves cost to OPTIMIZE and predictive optimization. Do not run both on one table.
  • Serverless standard mode and performance optimized mode use the same SKU at different DBU rates. Match the mode to the latency need of the job.
  • Apps bill while they run. Stop them on a schedule when nobody uses them.
  • Zero-copy shares move query compute to the consumer. Give that compute an owner.
  • Group system.billing.usage by billing_origin_product, and give each line an owner.

The data platform engineering page describes the platform audit, which includes a written report on cost.

If your Databricks bill grew after a feature was supposed to make it smaller, I can trace where the cost went and assign each line an owner. That work is the cost part of my platform audit.

Book a 30-minute call

Ask a question