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-pipelinesCOPY 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.
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.
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 TABLEdoes not change the refresh mode. UseCREATE OR REPLACEorCREATE 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:
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:
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
RELYprimary 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.
