Dynamic tables grew up, adaptive refresh and custom incremental logic

Snowflake's two July 2026 dynamic table releases remove the full-versus-incremental guesswork and open the door to CDC and merge patterns.

Code for this article

cloudcentrix-labs/snowflake-data-pipelines

COPY and Snowpipe ingestion, error tables that keep the rows a load rejects, semantic view materializations and dynamic table chains.

In CI. Lints the SQL with sqlfluff, skipping a few statements with newer syntax. That does not prove the scripts run.

4 posts are written against it

Dynamic tables have always had one awkward decision at the centre: full refresh or incremental. Pick incremental and a bulk backfill upstream can make a refresh cost more than a rebuild. Pick full and you pay for a rebuild every time. In late July 2026 Snowflake shipped two features that change that decision, and both are generally available.

Adaptive refresh mode

ADAPTIVE refreshes incrementally by default. When Snowflake judges that an incremental refresh would cost significantly more than rebuilding, it reinitialises the table once and then goes back to incremental refreshes. Typical triggers are an INSERT OVERWRITE on a base table, or a bulk delete or update.

SQL
CREATE OR REPLACE DYNAMIC TABLE dt_orders
  TARGET_LAG = '1 hour'
  WAREHOUSE = transform_wh
  REFRESH_MODE = ADAPTIVE
  INITIALIZATION_WAREHOUSE = transform_wh_xl
  AS
    SELECT order_id, customer_id, order_total
    FROM raw.orders
    WHERE order_total IS NOT NULL;

Two details are worth knowing before you adopt it:

  • The optional initialisation warehouse. Reinitialisations can run on a larger warehouse than the routine refreshes, so the everyday warehouse stays small.
  • You cannot switch an existing table with ALTER. ALTER DYNAMIC TABLE does not change the refresh mode. Use CREATE OR REPLACE or CREATE OR ALTER.

Snowflake now recommends ADAPTIVE as the preferred mode for incremental workloads, and newly created AUTO tables resolve to ADAPTIVE or FULL. You can check what a table resolved to, and why:

SQL
SHOW DYNAMIC TABLES LIKE 'dt_orders' ->> SELECT "name", "refresh_mode", "refresh_mode_reason" FROM $1;

Reinitialisations are visible in DYNAMIC_TABLE_REFRESH_HISTORY, with REFRESH_ACTION = 'REINITIALIZE' and a REINIT_REASON column. That is the first place to look when a refresh takes longer than usual.

Custom incremental dynamic tables

Some pipelines never fitted the declarative model: CDC feeds with deletes, running totals, audit trails. Until now those went back to streams and tasks. Custom incremental dynamic tables let you write the DML that runs on each refresh, while Snowflake still handles scheduling, retries and transactions.

The shape is a dynamic table with an explicit column list and a REFRESH USING clause that holds one statement:

SQL
CREATE OR REPLACE DYNAMIC TABLE <name> ( <column list> )
  ...
  REFRESH USING (
    MERGE INTO SELF AS tgt
    USING ( ... FROM clicks CHANGES(INFORMATION => APPEND_ONLY) AS c ... ) AS src
    ...
  );

The statement can be a MERGE INTO SELF, an INSERT INTO SELF, or an INSERT OVERWRITE INTO SELF ... DELETING WHERE. Source tables are read through CHANGES(), so each refresh sees only what changed since the last one. The reference page has complete worked examples; copy from there, because the clause order matters.

The limits that will catch you

  • An explicit column list is required, and only one DML statement is allowed.
  • Base tables need change tracking, and retention must outlast the gap between refreshes.
  • There is no dbt integration for custom incremental tables yet.
  • No automatic primary key is derived. If downstream tables need one, add a RELY primary key yourself.
  • Structured types and table UDFs are not supported.

What we would do with it

For existing incremental dynamic tables, moving to ADAPTIVE is the easy win: recreate the table, watch the refresh history for a week, and size the initialisation warehouse from what you see. Custom incremental is the bigger opportunity. A stream-and-task pipeline that exists only because the logic needed a MERGE is now a candidate for a single dynamic table, with the lag target and lineage that come with it.

Further reading

More from the same code.

Other posts written against snowflake-data-pipelines.

All 18 posts

Put this to work on your Snowflake loads.

Merylene Schoeman wrote this post. Send us a few lines about the loads, pipelines or models you want built or fixed.

Talk to an engineerWe reply within one business day.

What happens next

  1. You send a few lines about the problem.
  2. One of us replies within one business day.
  3. You talk it through with the engineer who would do the work.
  4. You get a fixed scope, timeline and price before any work starts.

We sign an NDA before the first conversation if you want one.

Or write to info@cloudcentrix.co.za or call +27 82 445 4311.