The numbers behind Spark and Databricks adoption
Apache Spark 4.0 introduces a VARIANT data type that offers 8x faster query execution for JSON data. Databricks provides performance gains via the Photon engine, though ETL-heavy workloads remain 30% to 40% cheaper than Snowflake.
Spark 4.0 and the Databricks Runtime
Apache Spark 4.0 introduced the VARIANT data type in May 2025 to handle semi-structured JSON data through an optimized binary format. This data type allows users to query nested fields using dot notation and provides up to 8x faster query execution than traditional JSON strings. Databricks builds its runtime on Spark, with version 17.3 LTS running Spark 4.0.0 and version 18.2 running Spark 4.1.0. The Photon engine, a vectorized C++ query engine, accelerates SQL and DataFrame workloads. This engine provides 3 to 5 times the query speedup for SQL workloads but adds a 50% DBU surcharge. Spark 4.0 also enables ANSI SQL mode by default, which causes numeric overflows or division by zero to throw exceptions instead of returning null values.
Databricks provides a unified environment for data engineering and machine learning through its Databricks Runtime. This runtime bundles Apache Spark with components like Delta Lake for ACID transactions and MLflow for managing the machine learning lifecycle. It also includes the DBIO module to optimize I/O performance and the DBES module for encryption and auditing. For users needing flexibility, Spark Connect provides a lightweight client that allows remote connectivity from various environments. This architecture decouples the user application from the Spark cluster. Spark Connect also allows developers to use Spark through Python, Scala, Go, Swift, or Rust.
Pricing complexities and workload optimization
Databricks usage patterns dictate the total bill because DBU rates vary by workload. All-purpose compute costs 2.5 to 3 times more per DBU than jobs compute. Many teams run development on all-purpose clusters and fail to migrate production workloads to jobs compute. If a team uses 20 engineers on always-on all-purpose clusters, they spend between $15,000 and $25,000 monthly on idle compute. You should monitor these costs by enforcing auto-termination policies, such as a 30-minute limit for inactivity.
| Feature | Cost/Performance Detail |
|---|---|
| All-purpose compute | 2.5 – 3x cost of jobs compute |
| Photon Engine | 50% DBU surcharge |
| ETL-heavy workloads | 30 – 40% cheaper than Snowflake |
| BI-heavy workloads | 20 – 30% more expensive than Snowflake |
| Snowflake storage | ~$23 per TB per month |
Because Databricks uses a usage-based, pay-as-you-go model measured in Databricks Units, the total cost for a workload varies depending on the compute resources, the amount of data processed, and the specific cloud provider or region used. For ETL-heavy and ML-heavy workloads, Databricks costs 30% to 40% less than Snowflake. For BI-heavy workloads with minimal engineering, Snowflake costs 20% to 30% less than Databricks. Snowflake also charges based on compute credits, where an XXL warehouse consumes 128 credits per hour. Databricks storage also carries overhead because Delta Lake transaction logs increase storage by 30% to 50% over raw data. Snowflake users also face hidden costs through features like Time Travel, where a 50 TB dataset can generate $200,000 per year if storage volume multiplies by four.
Performance benchmarks and the AI infrastructure gap
Performance tests reveal the impact of using specialized accelerators over standard Spark. The Quanton engine, which uses a Velox-based architecture to optimize SQL plans, reads, writes, and table maintenance, finished a 10 TB TPC-DS run in 1,480 seconds while open-source Spark 4.1.3 required 10,506 seconds for the same tasks. Quanton also beat Databricks Photon by 28% in this specific benchmark. Other options include Apache Gluten, which uses Velox or ClickHouse, and Apache DataFusion Comet, which uses Rust.
The current shift toward AI agents requires organizations to build unified, multi-modal data estates that span both structured and unstructured formats to ensure that AI models access accurate, real-time information from across the business. 83% of IT leaders believe better data infrastructure accelerates AI adoption. However, 67% of senior business leaders say their current infrastructure slows AI adoption. This gap exists because AI systems often act on fragmented or stale data. A Deloitte report found that 74% of companies expect to use AI agents by 2027, yet only 21% have a mature governance model for autonomous agents. Will companies eventually abandon managed platforms for the cost savings of custom Spark tuning?