<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Frederic Gessler (ELCA) on Medium]]></title>
        <description><![CDATA[Stories by Frederic Gessler (ELCA) on Medium]]></description>
        <link>https://medium.com/@frederic.gessler?source=rss-1d8a0fcb807b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cXjdfbH9VDqPTBaIIIV8rg.jpeg</url>
            <title>Stories by Frederic Gessler (ELCA) on Medium</title>
            <link>https://medium.com/@frederic.gessler?source=rss-1d8a0fcb807b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:26:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@frederic.gessler/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cloud Data Warehouses and Data Lakehouses side-by-side evaluation]]></title>
            <link>https://medium.com/elca-it/is-performance-the-only-decision-factor-for-current-cloud-data-warehouses-and-lakehouses-24c142e9b9a4?source=rss-1d8a0fcb807b------2</link>
            <guid isPermaLink="false">https://medium.com/p/24c142e9b9a4</guid>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-lakehouse]]></category>
            <category><![CDATA[it-architecture]]></category>
            <dc:creator><![CDATA[Frederic Gessler (ELCA)]]></dc:creator>
            <pubDate>Thu, 16 Jun 2022 11:27:28 GMT</pubDate>
            <atom:updated>2022-08-21T14:50:46.008Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever been overwhelmed by the number of data platforms available? As the Hadoop ecosystem matured, the number of open source SQL engines increased significantly: Hive, Spark, Presto, Drill, Impala, Dremio, …, and apart from engines tailored to very specific use cases, choosing an engine wisely can be a daunting task. No benchmark compares all of them at a large enough scale. Moreover, a new kind of service-based Cloud Data Warehouse that hides storage details has emerged. They provide similar scalability and cost properties but are simpler to operate and provide the enterprise readiness of legacy data warehouses. This is why we have decided to conduct a benchmark with what we consider to be the major actors of these architectures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*PMWozhy9zVTqbImk" /><figcaption>Photo by <a href="https://unsplash.com/@sebastiaanstam?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">sebastiaan stam</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In the early days of Big Data, there were fewer platforms to choose from and performance or API differences between data processing frameworks were easy to pinpoint. Compilation of SQL queries, “in-memory processing” and vectorization were not ubiquitous, so there were clear-cut architectural reasons to prefer one engine over the other. Today, a lot of these techniques have become ubiquitous and architectural differences are much more nuanced. Such nuances include shuffle implementations and execution models for example, but they do not always produce significant performance differences.</p><p>In this article, we explore whether performance is even still the main decision factor by benchmarking five popular data analytics platforms. We will present and discuss our benchmark results on TPC-DS@SF10000 (10TB), and show how we prepared the data and deployed the systems. Beyond performance, differences in use cases are not clear, as platforms all claim to be able to do everything.</p><h4>Context</h4><p>We benchmarked five of the most relevant platforms of today on a warehousing workload. Data warehouses are repositories of subject-oriented, structured, historical data, used by data-driven organizations as a primary decision-making tool (decision support systems and BI), and typically optimized for scan-like queries with large selectivities over a few dimensions at a time (columns).</p><p>All platforms support some degree of elasticity and feature decoupled storage and compute, meaning that data persistence is offloaded to a separate system, typically a Cloud Object Store. This model is better suited to cloud economics as it enables preemptible compute, low-cost massively scalable storage and provides better flexibility than data warehouses with a fixed partitioning, which the Big Data scale requires.</p><p>The platforms tested include:</p><ul><li><a href="https://www.snowflake.com/">Snowflake</a>: is not only an enterprise-ready Cloud Data Warehouse but also a <a href="https://www.snowflake.com/trending/data-cloud-storage">data cloud</a>, a platform/ecosystem designed to replace the current two-tier data lake(s)-data warehouse(s) architecture with a single managed data abstraction, by providing a data sharing marketplace, and multiple connectors to data analytics frameworks and data services, so that data never leaves Snowflake from the user’s perspective.</li><li><a href="https://cloud.google.com/bigquery">BigQuery</a>: is a web-scale Cloud Data Warehouse, integrated with the Google Cloud ecosystem. It provides an advanced <a href="https://cloud.google.com/bigquery-ml/docs/introduction">ML as SQL API</a>, as well as a simplified and powerful <a href="https://cloud.google.com/bigquery/docs/write-api">data ingestion service</a>. Unlike the other engines, it does not rely on clusters but on dynamically allocated query processing trees. As such, it is the only platform here to provide a pay-per-usage billing model, where queries are billed individually based on the amount of data scanned.</li><li><a href="https://trino.io/">Trino</a>, formerly Presto, is an open source SQL engine for the data lake initially developed by Facebook (Presto), capable of querying many heterogeneous data sources, including cloud object storage, relational databases, NoSQL databases, RPC APIs, or even user-defined sources, thanks to its support of plugins. Trino is compatible with the Lakehouse paradigm as it supports both Iceberg and Delta.</li><li><a href="https://databricks.com/">Databricks</a>: is a data <a href="https://databricks.com/blog/2020/01/30/what-is-a-data-lakehouse.html">Lakehouse</a> platform, providing an enhanced version of Spark with a native runtime, accessed mainly through notebooks, along with various other features centered around data engineering and machine learning (experiment tracking, model serving, …). Databricks was co-founded by some authors of Spark and is the creator of the MLFlow and the Delta Lake projects in particular.</li><li><a href="https://www.dremio.com/">Dremio</a>: is a SQL engine for the data lake, compatible with the Lakehouse paradigm, as well as a data catalog to provide self-service data governance in organizations. It is partly built from open-source technologies, many of which Dremio created and maintains, such as Arrow and Gandiva.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*y-gH4ulT0FqK6b123l39zw.png" /><figcaption>High-level summary of data analytics used with the platforms in this project. Read top-down. The Hive Metastore is not discussed in this article but you should know it exists.</figcaption></figure><p>In this article, we provide the results of our benchmark as well as the methodology that went into deploying these systems.</p><p>The three queries we picked are taken from <a href="https://www.tpc.org/tpcds/">TPC-DS</a>, a standard in data warehouse benchmarking. We have preferred TPC-DS over TPC-H, as it exposes a <a href="http://vldb.org/pvldb/vol12/p2170-tan.pdf">wider variety of workloads</a> and generates <a href="http://www.tpc.org/tpcds/presentations/the_making_of_tpcds.pdf">more realistic</a> synthetic datasets than TPC-H for larger target sizes. TPC-DS models the reporting of sales in a store, in a Snowflake schema. The TPC-DS schema contains <strong>three pairs of fact tables, sales, and returns</strong>, with one pair for each of the catalog, web, and (physical) stores. The fact tables are <strong>supported by a dozen dimension tables</strong> modeling customers, items being sold, dates of sales, return reasons, and other entities. Fact tables are large tables that typically grow with business activity, whereas dimension tables provide supporting, slowly changing data.</p><p>Queries:</p><ul><li><a href="https://github.com/cloudera/impala-tpcds-kit/blob/master/queries/query9.sql">Query 9</a>, categorizes store sales transactions into 5 buckets according to the number of items sold, each containing multiple column averages. This query involves a <strong>case-when</strong> statement, which induces an uncommon data access pattern. Otherwise, the query involves typical <strong>aggregations</strong>.</li><li><a href="https://github.com/cloudera/impala-tpcds-kit/blob/master/queries/query28.sql">Query 28</a>, which calculates the average list price, number of nonempty (null) list prices, and number of distinct list prices of six different sales buckets of the store sales channel, defined by a range of distinct items and values of various columns. This is a regular <strong>aggregate</strong> query with a <strong>distinct</strong> operator that exposes the platforms’ abilities to rapidly scan massive amounts of data.</li><li><a href="https://github.com/cloudera/impala-tpcds-kit/blob/master/queries/query38.sql">Query 38</a>, which computes the count of customers with purchases from all 3 sales channels in a given year. This query is written with <strong>intersect</strong> statements, which are translated into <strong>joins</strong>.</li></ul><h3>Results</h3><p>We measured performance and cost on the following configurations, motivated later:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*EEZDxLpBKat28pl3mY-yog.png" /></figure><p>All experiments were run between December 2021 and January 2022. We used latest product versions available: Databricks runtime version 10.2, Dremio version 19.1.0, and Trino version 355. Platforms that are not serverless are run on <a href="https://cloud.google.com/compute/docs/general-purpose-machines#n1-high-memory">Google Cloud N1 machines</a></p><blockquote><strong>Warning</strong>: <em>Configurations are not always fully equivalent and may not be optimal</em></blockquote><p>We measured the following execution times and costs for the five platforms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67ztFuJK-B719XTtIdcR-Q.png" /><figcaption>Query execution time at cold start and after warm up.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2art1zu1L2r8m-Z0W4isOQ.png" /><figcaption>Cost of running the query (infrastructure cost x time, or data scanned x on-demand rate for BigQuery)</figcaption></figure><h4>Query 9</h4><p>The fastest system at cold start on query 9 is BigQuery with 4000 flex slots and Databricks after warm up. Dremio and Snowflake are also faster than BigQuery after warm up. Trino is the slowest system even after warm caches, as verified by the JMX cache hit rate stats.</p><p>We selected query 9 in the set of queries because it involves the rare case-when operator (only one occurrence in TPC-DS) and thus exhibits a rather uncommon execution pattern. The greatest particularity is that it involves more data reuse than query 28 because each of the conditional predicates is reused for each branch to compute different kinds of aggregates on different values. This results in the predicate column being used in multiple different sub-queries. This puts more emphasis on the disk, and thus the capacity and throughput of the disk are crucial. An ablation study on lake engines using different storage configurations should confirm this assumption.</p><p>The data also hints that query 9 favors table formats, but we are not able to formulate any precise hypotheses as to why, and this trend should be confirmed with an ablation study on table formats. If we look at cold starts, before table statistics may be cached, we observe engines with table formats (Dremio/Iceberg and Databricks/Delta) performing comparatively better than the other engines relying on other metadata layers. Table formats can definitely have an impact on performance for TPC-DS, as observed in the <a href="https://databricks.com/wp-content/uploads/2020/08/p975-armbrust.pdf">Delta Lake paper</a>.</p><h4>Query 28</h4><p>For query 28 at cold start, the fastest system is BigQuery with 4000 flex slots. After warm-up, the best performing system is Snowflake, followed by Databricks.</p><p>Query 28 is a query with simple aggregates (counts and averages) and filters, a distinct count, and no explicit sorting or joins. We see on scalability experiments with Snowflake and BigQuery that it is not perfectly parallelizable (no linear scaling) but does not plateau either. The query processing runtime obviously has its importance, but here the hardware will have a larger impact than on query 38. Because no large shuffles are limiting the number of nodes, the query is sensitive to the sheer number of nodes (more so than cores, because memory hierarchy will limit the scanning bandwidth in a single node). So configuration differences will matter here, especially after cold start.</p><p>Another way query 28 depends on hardware, is on local disks, which are used for column caching and have an influence on performance after warm up. Here the throughput of the disks, as well as their capacity, have an impact.</p><p>Taking those factors into account, we are not able to make any conclusions on inherent systems tradeoffs, and more experiments should be conducted to better assess IO-heavy workloads.</p><h4>Query 38</h4><p>The best performing platforms on query 38 at cold start are BigQuery and Snowflake, and Snowflake and Databricks after warm-up.</p><p>One hotspot in query 38 on any of the included platforms is computing the large intersection. The most important factor here is the ability of the engine to pipeline the join with upstream and downstream operators and to maintain a uniform balance of each node’s workload on skewed inputs. Indeed, we selected the query because it has a significant CPU-heavy phase. Shuffle performance depends on hardware characteristics, and on the implementation. Shuffles differ in the level of coupling they induce on producers and consumers (<a href="https://www.youtube.com/watch?v=obLnTw_pyDw">source 1</a>, <a href="https://cloud.google.com/blog/products/bigquery/in-memory-query-execution-in-google-bigquery">source 2</a>). Efficiently processing skewed joins depends on the ability to detect skew, and to dynamically redistribute work to idle nodes.</p><p>As skew is a crucial aspect of analytical queries and has at least a minor impact here, a useful micro-experiment would be to measure a join execution time on varying levels of skewed data. Another useful micro-experiment would be to assess the isolated shuffle performance of each engine.</p><p>For large joins, the impact of hardware is more difficult to evaluate than aggregate/filter-heavy queries, due to the trade-offs and number of mechanisms involved. Storage resources have an influence not only on caching, but on disk spilling, which is crucial to process joins that do not fit in memory (due to skew or not), but also is relied upon by some shuffle implementations, including Spark. Joins also may favor configurations with fewer nodes compensated by a larger number of cores, as reducing the number of nodes is a trivial way to reduce the amount of data to be shuffled.</p><h4>Cost</h4><p>The two less expensive platforms on all queries are consistently Dremio and Databricks, which is explained by a combination of fast query execution and <strong>low per-minute price due to spot instances, </strong>which provide a significant advantage without visibly impacting query performance. Spot instances may be a viable option for workloads that can tolerate node churn, meaning occasional performance degradations and or even query failures. Being able to optimize costs for such special cases is an advantage of open-source engines. For Databricks we also used Job compute instead of all-purpose compute.</p><p>Here, pay-per-use pricing is more expensive than pay-per-time pricing, but it also should be noted that it induces zero hidden costs due to downtime. There are some <a href="https://services.google.com/fh/files/blogs/esg_economic_validation_google_bigquery_vs_cloud-based-edws-september_2019.pdf">reports </a>arguing that pay-per-use pricing may prove more advantageous in the end when considering all aspects of operating a data warehouse.</p><h3>Benchmark setup</h3><h4>Platforms provisioning</h4><p>Conducting a fair benchmark is excruciatingly hard, as the definition of fairness is arbitrary, which is especially true when considering completely serverless systems alongside highly configurable multi-node systems. We may think of fairness as running each system on the same exact machine. This is impossible for cloud services as we have no access or control over the resources in serverless data warehouses. But even for open source engines, when we consider cost, the implications of resource trade-offs on cost may break our idea of fairness. For example, if a system relies on local disk and the other does not, forcing a local disk configuration on both systems would either hurt the performance of the system that relies on it or the cost efficiency of the system that does not. Even worse, systems may have conflicting resource requirements, so we should instead make the best effort to evaluate the platforms on fitting hardware.</p><p>The goal of this benchmark is to get a practical understanding of how each platform should be deployed and used and get a ballpark estimate of how each platform performs. If needed, the results can help choose what micro-experiments to conduct where we can either control or abstract away hardware resources. Results should in no way be used to make direct system comparisons.</p><p>That being said, we aim for a configuration with 100 nodes with 16 cores and 750GB of local SSD each and adapt to various platform limitations. As a reminder, local SSDs in cloud computing are physically attached storage that is ephemeral but provides the best latency. An arbitrary target execution time educated by other evaluations of TPC-DS and by preliminary experiments, was to reach a sub-minute query time on all queries.</p><p>Dremio was run with the default configuration and deployed on Kubernetes with GKE. Dremio provides <a href="https://github.com/dremio/dremio-cloud-tools/tree/master/charts/dremio_v2">Helm charts</a> to do so, although we had to make <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/local-ssd#example_ephemeral">major volume modifications</a> to be able to use NVMe local SSDs on Google Cloud. With Trino, we doubled the number of cores, as Trino has showcased near-linear vertical scaling in <a href="http://www.vldb.org/pvldb/vol12/p2170-tan.pdf">previous evaluations</a>, and because we did not mount the SSDs with NVMe, as the feature was not yet available on Dataproc. We deployed Trino on Dataproc. For Databricks, we could only get 62 nodes, but <a href="https://databricks.com/product/gcp-pricing/instance-types">each has 1.5TB</a> of local storage(enforced by Databricks). We also had to use second generation N2 instances instead of N1 . For BigQuery, we evaluated the on-demand execution, which is dynamically allocated, as well as multiple configurations of flex slots. For Snowflake, we ran multiple configurations and retain the 4XL one, which <strong>may not be the most cost-efficient</strong> but is an interesting data point. All systems were run on Google Cloud Platform (GCP), and we relied on deployment platforms that have equivalents at AWS and Azure such as Dataproc and Kubernetes Engine.</p><p>Performance statistics are collected according to the best practice on each engine. Statistics may be collected through various REST APIs and/or SQL objects, depending on the engine.</p><h4>Data preparation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*31BZeKdIZLVs3f8w2FZT5w.png" /><figcaption>Summary of data preparation tasks and results.</figcaption></figure><p>The data is generated with the <em>dsdgen</em> program provided by TPC, which can be run in parallel mode and/or deterministically (random generator seed), and writes all tables to the specified path as CSV files. The number of CSV files generated (80/table here) is determined by the number of <em>dsdgen</em> processes. If you plan on running TPC-DS yourself, we would advise running on machines with a lot of cores and low memory (for cost efficiency) and storing temporary data on Local SSD. It is possible to scale out also, which may be the easiest option for generating very large datasets. We write a script that launches the <em>dsdgen</em> processes, waits for all of them to successfully terminate, and copies the data to Google Cloud Storage (GCS).</p><p>Obviously, we do not want to run our benchmark on CSV files, as it lacks column pruning capabilities and is not a compressed format. All analytical engines rely on columnar formats to achieve the best performance. For Cloud Data Warehouses, data may be stored in the platform or may be queried in-situ in the lake. In both cases, the data is stored on cloud object storage, the only difference is whether the data platform manages metadata and files for us. For the data lake engines and Lakehouses, the data is by definition stored in the lake, and the format is mostly at the user’s discretion.</p><p>For the Cloud Data Warehouses, we basically run copy into statements from our staging files to new tables. For BigQuery, we can use the <em>bq</em> load CLI and run data loading free of charge, without provisioning infrastructure. For Snowflake, we may create a stage pointing to the CSVs, create the external table with the right schema and create the internal table (CTAS). Just like a regular query, we have to provision a virtual warehouse for executing the COPY INTO. As we would expect our simple copy statement to be easily parallelizable, we can choose a larger warehouse (2XL in our case).</p><p>For the data lake engines / Lakehouses, we choose to rely on Parquet with snappy compression as it is slightly more popular than ORC. Apart from the storage format, we have to decide on a table format and on partitioning column(s). We can naively treat the dimension tables, as they should not impact query performance and hence use regular Hadoop tables with no partitioning columns. For the fact tables, we may decide on Hive partitioning columns, which will put files corresponding to different column values in different directories, helping engines to easily eliminate files with unused values from the execution, yielding obvious performance advantages. We decided to partition the data by sold date key in the three sales tables.</p><p>We must also decide on using a table format, and make sure that the Parquet files are optimally sized. What we especially do not want is small files, namely files below ~<a href="https://parquet.apache.org/docs/file-format/configurations/">500MB</a>. Table formats like <a href="https://iceberg.apache.org/">Iceberg </a>and <a href="https://delta.io/">Delta </a>provide files and statistics in O(1) time instead of growing with the number of partitions, and <a href="https://databricks.com/wp-content/uploads/2020/08/p975-armbrust.pdf">can </a>provide non-negligible performance improvements.</p><p>In terms of table formats, we use Iceberg for Dremio, Delta for Databricks, and plain Hive tables for Trino. Ideally, we should compare table formats on each engine, but we were not able to make it a priority, so we had to identify a primary one. Dremio has built the Arctic metastore around Iceberg, so we infer that it may be the preferred format. Databricks created the Delta format, so it seems appropriate to prefer this format. We use a <a href="https://iceberg.apache.org/docs/latest/spark-configuration/#catalogs">Hadoop catalog</a> for both Dremio and Databricks, meaning that the table manifests are read directly from cloud storage instead of going through a <a href="https://lakefs.io/hive-metastore-why-its-still-here-and-what-can-replace-it/">Hive Metastore Service</a>, which is the Hive catalog. We had planned to do the same for Trino, but as support for Iceberg was under active development at the time, only the Hive catalog for Iceberg was available. Unfortunately, we were not able to accommodate this and had to run Trino with the Hive format (Parquet files in the data lake).</p><p>We do not rely on DDL for each engine but instead create the data externally on cloud storage. This is because we assume that data lake engines will be used in data lake contexts and only consider the data serving/querying use case here. Also, Dremio at the time does not support DDL and is basically a read-only engine.</p><h3>Conclusion</h3><p>Despite not being able to provide direct 1:1 system comparisons, we have learned a lot from conducting this benchmark, notably in terms of the strength of various engines, the complexities to avoid, basic requirements and best practices, and we hope this article was useful to you as well.</p><p>Our results are showing that most system performance is comparable. Thus when selecting a data analytics platform for your project, you may need to take into account other factors like data integration, existing infrastructure, use cases, ecosystem, and others.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24c142e9b9a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/elca-it/is-performance-the-only-decision-factor-for-current-cloud-data-warehouses-and-lakehouses-24c142e9b9a4">Cloud Data Warehouses and Data Lakehouses side-by-side evaluation</a> was originally published in <a href="https://medium.com/elca-it">ELCA IT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>