Snowflake Dynamic Tables: When to Use Them and When to Stick with Streams/Tasks

Quick answer: Dynamic Tables are Snowflake's declarative approach to incremental pipelines. You write a SELECT, set a target_lag, and Snowflake handles the refresh. They suit SQL transformations such as star schema refreshes, and since July 2026 custom incremental dynamic tables can apply MERGE logic as well. Streams and Tasks remain the better fit for multi-step procedural logic, writing to several targets, external API calls and sub-minute latency.

Last updated: October 2026

Snowflake Dynamic Tables keep the result of a query up to date automatically, refreshing it to stay within a freshness target you set. A single CREATE DYNAMIC TABLE statement replaces the stream that tracks changes, the task that schedules processing and the stored procedure that runs the SQL in a classic pipeline. They suit transformation layers, from staging to marts, where data that is a minute to an hour old is acceptable. Streams and tasks remain the better choice for sub-minute latency or complex multi-step CDC logic. This guide compares the two with implementation examples.


That's the theory. In practice, there are real tradeoffs between Dynamic Tables and the Streams/Tasks pattern that determine which one you should use for a given pipeline. This guide walks through both approaches with enough detail that you can make that call for your own workloads.


What Dynamic Tables Actually Do


A Dynamic Table is a materialized result set that Snowflake keeps up to date automatically. You define it with a SQL SELECT statement and a target_lag parameter that tells Snowflake how stale the data is allowed to get. Snowflake's internal scheduler then figures out how often to refresh the table to meet that target.


Here's the key mental model: a Dynamic Table is like a materialized view that you can control the refresh frequency of. Except unlike materialized views in Snowflake (which are best for simple queries on a single table), Dynamic Tables support joins, aggregations, window functions, and CTEs.


Here's a real example. Say you have a raw orders table and a raw customers table, and you want a denormalized order_summary that joins them and adds some computed columns:


SQL - Dynamic Table definition
CREATE OR REPLACE DYNAMIC TABLE order_summary
  TARGET_LAG = '10 minutes'
  WAREHOUSE = transform_wh
AS
SELECT
    o.order_id,
    o.order_date,
    o.total_amount,
    c.customer_name,
    c.segment,
    o.total_amount - COALESCE(o.discount, 0) AS net_amount,
    DATEDIFF('day', c.first_order_date, o.order_date) AS customer_tenure_days
FROM raw.orders o
JOIN raw.customers c ON o.customer_id = c.customer_id
WHERE o.status != 'cancelled';

That's it. No Stream, no Task, no stored procedure, no scheduling config. Snowflake will keep order_summary within 10 minutes of the source tables. When new rows land in raw.orders or raw.customers, Snowflake detects the change and refreshes the Dynamic Table on the transform_wh warehouse.


Understanding target_lag


The target_lag parameter is the most important configuration on a Dynamic Table. It doesn't set a fixed schedule. It sets a freshness target, which Snowflake describes as best-effort, so applications should not assume the data is always within it. Snowflake's scheduler decides when and how often to refresh, based on how frequently the source data changes and how long each refresh takes.


You can set it as a time interval or use the special keyword DOWNSTREAM:



A gotcha: setting target_lag = '1 minute' doesn't mean the table refreshes every minute. If a refresh takes 3 minutes to complete, Snowflake will start the next one immediately after the previous finishes, but you'll see actual lag of 3+ minutes. Because target lag is best-effort, monitor the actual lag with:


SQL - Check refresh history
SELECT *
FROM TABLE(INFORMATION_SCHEMA.DYNAMIC_TABLE_REFRESH_HISTORY(
    NAME => 'MY_DB.MY_SCHEMA.ORDER_SUMMARY',
    DATA_TIMESTAMP_START => DATEADD('hour', -6, CURRENT_TIMESTAMP())
))
ORDER BY DATA_TIMESTAMP DESC;

REFRESH_MODE: Five Refresh Modes


Dynamic Tables now support five refresh modes, set with the REFRESH_MODE parameter:



In production, Snowflake recommends setting ADAPTIVE, FULL or INCREMENTAL explicitly instead of relying on AUTO. To see which mode an existing table uses and why, check the refresh_mode and refresh_mode_reason columns of SHOW DYNAMIC TABLES. In the refresh history, REFRESH_ACTION shows whether each refresh ran as FULL, INCREMENTAL, NO_DATA, REINITIALIZE or CUSTOM_INCREMENTAL. UNION ALL and most window functions support incremental refresh. EXCEPT and INTERSECT do not, and neither do PERCENT_RANK, DENSE_RANK or RANK with sliding window frames.


Want this running in your own account? We build Snowflake platforms end to end: ingestion, modelling, access control, and the monitoring that tells you when a load drifts. Not slide decks. Not roadmaps. Real working systems you can point at.

Book a Snowflake call Snowflake consulting

When Dynamic Tables Are the Right Choice


Dynamic Tables work best when your pipeline is essentially a chain of SQL transformations and you want Snowflake to handle the scheduling and change tracking. Specific use cases:



When to Stick with Streams/Tasks


Dynamic Tables have real limitations. Here's when you need the Streams/Tasks pattern instead:



Monitoring and Troubleshooting


Dynamic Tables are managed by Snowflake's internal scheduler, which means you don't control exactly when refreshes happen. That's great until something goes wrong. Here's how to stay on top of it:


Check current lag and status:

SQL - Dynamic Table status
SHOW DYNAMIC TABLES LIKE 'ORDER_SUMMARY' IN SCHEMA my_db.my_schema;

-- Key columns to check:
-- SCHEDULING_STATE: RUNNING or SUSPENDED (failed refreshes appear in the refresh history)
-- REFRESH_MODE and REFRESH_MODE_REASON: the mode in use and why
-- DATA_TIMESTAMP: When the data was last refreshed
-- TARGET_LAG: Your configured lag

If a Dynamic Table falls behind: Check whether the warehouse is undersized (refresh takes longer than the target lag), whether the source data volume spiked, or whether there's a resource contention issue from other workloads on the same warehouse. A dedicated warehouse for Dynamic Table refreshes is usually worth the cost on production workloads.


Common Gotchas



Key Takeaways


Pranay Vatsal, Founder & CEO

Pranay Vatsal is the Founder & CEO of CelestInfo with deep expertise in Snowflake, data architecture, and building production-grade data systems for global enterprises.

Related Articles

Frequently Asked Questions

Q: What is a Snowflake Dynamic Table?

A Dynamic Table is a declarative pipeline object in Snowflake that automatically materializes the results of a SQL query and keeps them refreshed based on a target_lag setting. You define the transformation as a SELECT statement and Snowflake handles the refresh scheduling and incremental logic automatically.

Q: What does target_lag mean in Dynamic Tables?

target_lag defines the staleness you're willing to accept. Setting target_lag = '10 minutes' tells Snowflake to keep the table within about 10 minutes of its sources, and its scheduler decides how often to refresh to meet that. Snowflake describes target lag as best-effort, so the table can fall behind when refreshes take longer than the target.

Q: Can Dynamic Tables replace dbt models?

They can replace some dbt models, specifically simple transformations that don't need Jinja logic, custom tests or documentation. Many teams use both: Dynamic Tables for near-real-time materialization and dbt for governed, tested transformations with version control and CI/CD.

Q: What are the limitations of Snowflake Dynamic Tables?

Dynamic Tables can't call external functions or stored procedures in their defining query, and they don't read from external tables or stages directly. Scalar UDFs are supported with some limits on incremental refresh, and custom incremental dynamic tables accept MERGE logic. For procedural steps, several targets or external calls, use Streams and Tasks.