You are here:

Simplify Reverse ETL with Iceberg Tables

Overview

In the world of data engineering, we’ve spent over a decade perfecting the art of getting data into the warehouse. After data cleaning and modeling, we have a new challenge of getting the data out of the warehouse for Reverse ETL use cases.

Some reverse ETL use cases include:

    • Syncing modeled data into BI tools
    • Powering downstream analytics platforms
    • Feeding data science workflows
    • Sharing data cross-cloud

Traditionally, implementing reverse ETL means introducing another tool, pipeline, or integration layer. Now modern table formats like Apache Iceberg are changing that paradigm.

Traditional Reverse ETL vs Iceberg Tables

In a Snowflake-centric stack, reverse ETL typically looks like this:

    1. Transform data inside Snowflake
    2. Use a third-party tool (e.g., Airbyte, Fivetran, custom pipeline)
    3. Extract and ship data into another system
    4. Maintain sync logic, scheduling, error handling

While effective, this introduces extra infrastructure, additional cost, operational complexity, and more failure points

With Iceberg tables you can keep one central copy of your data in cloud storage, and access it across multiple platforms (Snowflake, BigQuery, Databricks, etc…). Now, for example, if BigQuery needs to access data from a Snowflake Iceberg table, there is no data transfer, additional tools, or pipelines needed. BigQuery can just access the Iceberg tables directly.

(Iceberg with Snowflake using external volumes)

Snowflake’s dynamic Iceberg tables make keeping Iceberg tables synced even easier.

“Automated data transformation with dynamic Iceberg tables uses declarative SQL to define the desired end state without managing intermediary steps. Snowflake handles orchestration, scheduling, and refreshing data transformations based on your specified data freshness targets.”

(snowflake docs)

Below is an example of how easy it is to create a dynamic Iceberg table. The only required additional field is the target lag that specifies the target freshness of the data.


CREATE DYNAMIC ICEBERG TABLE my_dynamic_iceberg_table (product_id NUMBER(10,0), product_name STRING, order_time TIMESTAMP_NTZ) 
TARGET_LAG = '20 minutes' 
WAREHOUSE = my_warehouse 
EXTERNAL_VOLUME = 'my_external_volume' 
CATALOG = 'SNOWFLAKE' 
BASE_LOCATION = 'my_iceberg_table' 
AS 
SELECT product_id, product_name, order_time FROM staging_table; 

Looker Studio Case Study

To see how effective Snowflake’s Iceberg tables can be, I’ll go through a project where Iceberg tables played a key role in keeping BI costs low.

In this case, a client was using a common lightweight BI tool called Looker Studio, which is actually free to use. Being a free tool, it imposes many limitations on the data volume that can be used and the support for sources. Snowflake is supported by Looker Studio, but there is a limit of 1M rows that can be transferred to Looker Studio. By itself this is reasonable, but Looker Studio does not support full push down compute Snowflake. This means when Looker Studio needs to generate a dashboard it can fetch full tables from Snowflake and do the compute in the Looker engine. Obviously, if your BI tool needs to fetch full tables, you will easily run into issues with the 1M-row limit.

This limitation is meant to push users to BigQuery, where full push down compute is supported, and there are no data limits. Looker Studio users are expected to choose to migrate from Looker Studio to Looker or start bringing their data into BigQuery.

This is where Iceberg makes our life easy. Before Iceberg we would have had to set up a reverse ETL pipeline to export all the data. Now we can use Icebergs to cut out the “reverse ETL middlemen”. By using dynamic Iceberg tables to refresh Iceberg tables from Snowflake on a set schedule, we can access all of our data directly in BigQuery.

Considerations

There are a few considerations to keep in mind when using Iceberg tables with Snowflake and BigQuery.

In our simple setup, where each platform is essentially their own catalog, we need to update the BigQuery tables to point towards the latest metadata.json files to get the most up-to-date data. This is fairly straightforward to set up as a BigQuery scheduled query.

Creating/Replacing dynamic tables creates a new folder structure that must be linked to a BigQuery table, which can also be automated.

Outcomes

By using Iceberg tables with BigQuery and Snowflake we were able to: eliminate additional overhead of using a reverse ETL tool, create the cross-platform pipeline entirely in SQL for simplicity, and prevent extending third-party ingestion ETL contracts.

Author

Avatar photo
Email:

Share on:

Recent Insights

7Rivers CTA
Button

You might also be interested in...

Apache Iceberg on Snowflake: When Open Table Formats Pay Off (and When They Don’t)

The “We’re Going Open” Mandate The directive usually arrives in a leadership meeting, in three words: “We’re going open.”

Meet the Team: Gavin Frings

Based in Wisconsin, Gavin Frings is an Associate Consultant at 7Rivers specializing in data engineering. After earning his Master’s

On the River with Marcos: Snowflake’s Agents Learn the Business

https://youtu.be/LMz-fwbySfs Hey folks, Marcos here. Snowflake held its EXPEDITION event in early November, and the theme was clear: agents

Ready to Lead the Future with AI?

No matter where you are in your AI and data journey, 7Rivers is here to guide you.