<?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 Simon Darr on Medium]]></title>
        <description><![CDATA[Stories by Simon Darr on Medium]]></description>
        <link>https://medium.com/@simondarr?source=rss-f5488e9ee4ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Va1xQ6J2K7Vb-vofIXWL3Q.png</url>
            <title>Stories by Simon Darr on Medium</title>
            <link>https://medium.com/@simondarr?source=rss-f5488e9ee4ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:48:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simondarr/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[Snowflake vs BigQuery - IMO]]></title>
            <link>https://medium.com/weareservian/snowflake-vs-bigquery-imo-c94bc6d5e4c9?source=rss-f5488e9ee4ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/c94bc6d5e4c9</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[bigquery]]></category>
            <dc:creator><![CDATA[Simon Darr]]></dc:creator>
            <pubDate>Tue, 17 Nov 2020 00:56:48 GMT</pubDate>
            <atom:updated>2020-11-18T12:47:07.493Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cibs_G1x0RIZWc-3C1cVYg.jpeg" /></figure><p>I know what you’re thinking - great, another [this cloud DWH] vs [that cloud DWH] yawn - but bear with me, I want to add a different flavour to the old this-vs-that posts. In this post I’m going to have… wait for it… OPINIONS ON THINGS! I know, right?!?!</p><p>So, this post isn’t going to be a comparison of functionality or performance that the tools offer, this has already been <a href="https://medium.com/@richiebachala/snowflake-redshift-bigquery-b84d2cb60168">covered</a> really well <a href="https://fivetran.com/blog/warehouse-benchmark">elsewhere</a> (spoiler alert: they’re mostly the same). Rather, I’m going to give you my opinion on the areas where I see Snowflake being better than BigQuery, and then I’ll cover where BigQuery wins over Snowflake.</p><p>Let’s start where Snowflake wins…</p><h3>Snowflake advantages over BigQuery</h3><h4>Web UI</h4><p>I don’t think there is any argument here. Snowflake really leaves BigQuery in the dust when it comes to their web UI. The web UI for Snowflake is super easy to use; you rarely need to use the Snowflake CLI or an external IDE. I feel like the BigQuery UI doesn’t make the best use of screen space and it feels clunky to use. I never seem to have enough space on the BigQuery UI for some reason. Here are some more specific reasons Snowflake wins when it comes to the UI:</p><ul><li>Tabbed worksheets and the ability to have multiple worksheets open at the same time</li><li>Saving, searching and opening worksheets is much easier and more intuitive in Snowflake.</li><li>You can search for database objects using the hierarchical object viewer.</li><li>The ability to assume a different security role or change your database/schema context</li><li>If you have an SQL worksheet that has multiple statements, in Snowflake, you can run an individual query simply by putting your cursor in the SQL query text and hitting CMD + Enter (you know… like every other SQL IDE ever). In BigQuery, you need to <strong>highlight</strong> the query you want to run otherwise you risk running the entire worksheet (not good if you have a drop / truncate in there somewhere). This gets super annoying especially since you can’t have multiple worksheets open at the same time.</li></ul><p>Just in case you can’t already tell how annoyed I am by that last point I’ve gone to the effort of building this gif for you. Don’t blink or you’ll miss the Snowflake part :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*9_1HGuAfGVGmAmchGovTDA.gif" /><figcaption>Don’t drop that table!</figcaption></figure><h4>SQL for everything</h4><p>Everything in Snowflake can be done with SQL. Creating Snowflake-specific objects like a Snowpipe or a File Format can be done with SQL, and you can even load data with SQL.</p><p>Being able to use SQL for everything is a huge benefit and means you don’t need to use some custom API to do things as you do in BigQuery; you send a SQL statement and you’re done. In BigQuery, there are some things that you can’t do with SQL even though you’d think these are pretty standard things to do. Want to drop or rename a column in a table? Sorry, you can’t do that with SQL. Actually, you can’t even do that with the API so you’ll need to recreate the table… huh?!?</p><figure><img alt="Which to use which to use…" src="https://cdn-images-1.medium.com/max/480/1*TdD2eSlogX9zQIriQ_IyfA.gif" /><figcaption>How do I drop… wait what? New table. Got it.</figcaption></figure><h4>Multi-statement transactions</h4><p>Snowflake has multi-statement transactions and BigQuery does not. Multi-statement transactions are important for ELT workloads where you want a big process that touches multiple tables to complete in an atomic way (fully succeed or rollback).</p><p>Some will say that denormalization in BigQuery removes the need for multi-statement transactions, but I don’t think it does. There are loads of situations where multi-statement transactions make your life so much easier. Multi-statement transactions are something BigQuery is definitely missing right now. Also, <a href="https://cloud.google.com/bigquery/docs/reference/standard-sql/scripting#bigquery_scripting">scripting</a> is not the same as multi-statement <a href="https://docs.snowflake.com/en/sql-reference/transactions.html">transactions</a>.</p><h4>Caching across users</h4><p>Both BigQuery and Snowflake cache the results of all queries - the <br>“Result Cache” - the difference though is that Snowflake caches the results at a global level where BigQuery caches these results <strong>per-user</strong>. This means that if I run a complicated query that takes ages and you wanted to run the same query, Snowflake would allow you to get results in a fraction of the time by using the cache. BigQuery doesn’t allow this global Results Cache, so you’d have to re-run the query from scratch (and you’ll be charged for it too, sucker).</p><p>The global caching provided by Snowflake can save time and money, especially if you’re using a BI tool with frequently accessed and slowly changing dashboards.</p><h4>Zero-Copy cloning</h4><p>Zero-copy cloning is one of the coolest features of Snowflake. Let’s say that you’ve built a new ELT pipeline and you want to run it in Dev with some fresh data from Production (or whatever, it happens). In Snowflake you can clone the table from Prod to Dev and it’ll instantly (almost) make a copy of the table without duplicating the underlying storage. Since the underlying storage isn’t physically duplicated the cloning process happens super quick and you don’t have to pay for the additional storage. When you make changes to the Dev table you’ll only pay for the blocks you modify too.</p><p>Want to do the same thing in BigQuery? Whelp, you gotta physically move that data buddy and you’ll pay for the additional storage and processing it takes to run the query too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*H4NM9bP22arpoK7OhKTqLg.jpeg" /><figcaption>Get it? Clones... hah!</figcaption></figure><h4>Object security</h4><p>One of my biggest gripes with BigQuery is how you are forced to manage security using the same IAM model that is used for all other GCP resources. BigQuery has been designed with the broader GCP ecosystem in mind but, as a data warehouse, its security model hard to understand and difficult to implement. This especially true if you are used to the way object-level security works in other databases.</p><p>Snowflake follows the usual RBAC security model where you only need to worry about users, roles and privileges. In BigQuery you have users, groups (this isn’t even generally available yet!), roles (groups of privileges), privileges and policies. The privileges don’t line up with the types of DML you run in SQL and some seemingly standard things aren’t possible. For example, there is no way to limit a particular user or group to only list the tables that they can select from; they either see all of the tables and views in a dataset or none.</p><p>Coming back to the “SQL for everything” point I made above, one of the biggest pain points around security with BQ is that you can’t assign access to resources using SQL. It’s not uncommon when administering a warehouse that you’ll want to run a big SQL script that creates a bunch of tables and then sets the permissions on those tables at the end. With BQ, you need to do this with the API or the CLI it isn’t possible with SQL.</p><h4>Snowflake managed JDBC &amp; ODBC drivers</h4><p>I like that Snowflake manages and supports their own JDBC and ODBC drivers. Google outsource this to <a href="https://cloud.google.com/bigquery/providers/simba-drivers">Magnitude Simba</a>, raising doubts in my mind about the longevity, support and speed of adoption of new features. Also, using the JDBC &amp; ODBC drivers feel very clunky and it’s generally <a href="https://cloud.google.com/bigquery/providers/simba-drivers">not recommended</a> to use them if you’re building something new and don’t require a standard API:</p><blockquote>If you are building new integrations with BigQuery, you should consider the <a href="https://cloud.google.com/bigquery/docs/reference">native API</a>. The functionality exposed by an ODBC/JDBC connection is necessarily a subset of the full capabilities of BigQuery.</blockquote><p>If you’ve ever tried to use BigQuery with DBeaver or DataGrip, you’ll know exactly what I’m talking about when I say “clunky”.</p><h3>BigQuery advantages over Snowflake</h3><h4>Machine Learning</h4><p>BigQuery provides the ability to train and use machine learning models right there in the database and is a major benefit of using BigQuery over Snowflake. BigQuery ML allows data scientists and analysts to use a <a href="https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in">bunch of different models</a> (or import your own) without having to export your data or use a different tool to do the same job. This is a really innovative way to do Machine Learning and it totally makes sense to do this in your warehouse. This is probably where your training/inference data should be anyway.</p><p>Snowflake’s answer to doing ML is to palm the DS workload off to <a href="https://docs.snowflake.com/en/user-guide/ecosystem-analytics.html">another tool</a> or use external functions. <a href="https://docs.snowflake.com/en/sql-reference/external-functions-introduction.html#introduction-to-external-functions">External functions</a> are actually pretty cool, but it’s not the same as having native ML functionality in your database as you do with BigQuery.</p><h4>Streaming</h4><p>If you want to stream some data into Snowflake your best option is to use a <a href="https://docs.snowflake.com/en/user-guide/data-load-snowpipe-intro.html">Snowpipe</a>. Snowpipe is micro-batch however and not really a streaming option. In reality, I think it takes about 2 minutes on average before you see your data in your Snowflake table using a Snowpipe. In BigQuery, you have the option to stream data directly into a table properly. Streaming data into a table cost more than your normal batch-loads, but at least the option is there if you need it!</p><h4>Federated queries &amp; external tables</h4><p>BigQuery allows you to set up connections to <a href="https://cloud.google.com/bigquery/external-data-sources">external data sources</a> that also sit within the GCP ecosystem. Once you’ve set up connections within BQ to these data sources, you can either run “federated” queries on them using the external system’s SQL dialect or create external tables that point to data that resides outside of BigQuery. Here are the external sources you can connect to from within BQ:</p><ul><li>Cloud SQL (via federated queries)</li><li>Cloud Bigtable (via external tables)</li><li>Cloud Storage (via external tables)</li><li>Google Drive (via external tables)</li></ul><h4>Cross-region replication</h4><p>If you need to replicate and failover data to a different region or account with Snowflake the setup process involves quite a few steps (specify a primary database, specify secondary database accounts, create secondary databases, setup synchronisation, enable failover). On top of this, you need to purchase Business Critical Edition to enable failover/failback and the synchronisation and failover processes are manual steps. In BQ this is super simple, you check a multi-region box when you create your dataset and BQ handles the replication and failover automatically.</p><h4>The ability to “tune knobs”</h4><p>BigQuery does allow you to tune knobs for specific use-cases if you need to. For example, you can partition tables by date/ingestion time/numeric field but you don’t have to. You can also cluster within partitions, manually insert into partitions, or use templated tables. Having these options available to you is really great and I feel like BigQuery does a better job of letting you get down and dirty with the details, and that’s totally something administrators like to do.</p><p>The only tuning option Snowflake gives you is the ability to define a clustering column. All other performance-enhancing techniques are really just best practices like using a COPY command over individual inserts etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*XLiO2Dj4aX9XDbmBKSQdbA.jpeg" /></figure><h4>Dynamic scaling of individual queries</h4><p>Vertically scaling warehouses to improve query performance is a manual process with Snowflake - an `alter warehouse` command - and when you do scale it up, in-flight queries still don&#39;t get the additional resources. BigQuery automatically provisions resources on the fly in the background if a query is taking too long. This enables BQ to keep query runtimes short even if the data required to process it is huge.</p><h4>Lower storage cost for older data</h4><p>If you have data sitting in a BigQuery table and it hasn’t been modified in the last 90 days you pay a lower monthly rate for it. In Snowflake, it doesn’t matter how old your data is; you pay a single rate. I imagine this could have quite an impact on your storage costs if you land a bunch of data in your warehouse and never touch it again.</p><h4>Automatic clustering charges</h4><p>If you enable clustering on a table in Snowflake you get charged for the processing costs related to the clustering process. BQ has a similar process called auto-reclustering but doesn’t charge for it; it’s baked into the pricing model. With BigQuery, you pay for uncompressed storage and the overhead goes toward the costs of automatic clustering, snapshots, etc. With Snowflake, you pay for compressed storage, but then you pay for the compute credits associated with automatic clustering.</p><h4>Native solution</h4><p>BigQuery has been optimised and tuned over many years of usage at Google and it runs on custom hardware. Snowflake is restricted to customer-facing VMs on the respective cloud vendor’s platform (GCP, AWS or Azure), meaning they are subject to the throughput and processing limits of the provider. A change in the providers VMs may mean a change to Snowflake performance. This one is somewhat subjective I suppose but… ¯\_(ツ)_/¯</p><h3>Aaaand, we’re done!</h3><p>Whew, you made it to the end without falling asleep. Good for you! I hope I’ve helped you understand some of the differences between Snowflake and BQ. At least from my opinionated point of view anyway.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c94bc6d5e4c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/weareservian/snowflake-vs-bigquery-imo-c94bc6d5e4c9">Snowflake vs BigQuery - IMO</a> was originally published in <a href="https://medium.com/weareservian">Cognizant Servian</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>