Incremental, full and AUTO: choose deliberately
Refresh mode determines how a result is maintained. Incremental maintenance updates affected output; full refresh recomputes the result.
Understand the idea
A one-row source change can affect many result rows through a join or aggregation. Incremental therefore does not mean exactly one row of work, and it is not guaranteed to be cheaper than full refresh.
| Concept | What it means |
|---|---|
| INCREMENTAL | Maintains affected results; supported query shapes are required. |
| FULL | Recomputes the complete query result. |
| AUTO | Snowflake resolves a strategy; inspect the actual mode. |
| ADAPTIVE | Incremental processing with reinitialization when appropriate. |
A concrete example
A one-row source change can affect many result rows through a join or aggregation. Incremental therefore does not mean exactly one row of work, and it is not guaranteed to be cheaper than full refresh.
Remember: Measure affected work and refresh profiles; explicit modes make the intended behavior clear.
Explain it step by step · full theory
Understand the concept
A one-row source change can affect many result rows through a join or aggregation. Incremental therefore does not mean exactly one row of work, and it is not guaranteed to be cheaper than full refresh.
AUTO should not be explained as choosing a new strategy on every execution. Current Snowflake behavior includes ADAPTIVE; documentation and account behavior evolve. Inspect refresh_mode and refresh_mode_reason rather than assuming what AUTO selected. Our lab pins INCREMENTAL to keep the stream exercise explicit.
Apply it to our pipeline
Eligibility depends on the entire query, its operators, functions and source objects. Start with supported simple projections and aggregates. When adding a new expression, consult supported-query documentation; do not assume an arbitrary stored procedure or external side effect can run inside a declarative SELECT pipeline.
This optional comparison creates a separate full-refresh result. It is not part of the main dependency chain and has no timed consumer. Initial outputs can agree even though refresh work differs. Do not use a stream on this full-refresh table.
Words used in this lesson
- INCREMENTAL
- Maintains affected results; supported query shapes are required.
- FULL
- Recomputes the complete query result.
- AUTO
- Snowflake resolves a strategy; inspect the actual mode.
- ADAPTIVE
- Incremental processing with reinitialization when appropriate.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Incremental, full and AUTO: choose deliberately
Read the dependency
Refresh mode determines how a result is maintained. Incremental maintenance updates affected output; full refresh recomputes the result.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Read the dependency
Refresh mode determines how a result is maintained. Incremental maintenance updates affected output; full refresh recomputes the result.
- Observe the result
Two initial rows, matching CLEAN_ORDERS at this point. SHOW distinguishes FULL from INCREMENTAL; matching rows do not imply matching cost.
Try the SQL or command
Read → predict → run in your learning environment → compare. You can also learn by reading without an account.
New to SQL? Where to run it and how to read it
A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.
- No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
- For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
- Read the entire example, including comments beginning with
--. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor. - Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
- SELECT / FROM
- Choose the values to return / identify their input.
- VALUES / COLUMN1
- VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
- AS / WITH
- AS gives a result a readable name. WITH names a temporary query step within one statement.
- NULL / ::
- NULL means missing or unknown. The :: notation converts a value to a named data type.
- Session
- One connection and its settings. Keep related transaction steps in the same session.
- Database.schema.table
- A full address for stored data. It is separate from the warehouse that processes queries.
Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →
Help with common practice errors
- No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
- Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
- Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
- Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Before running this lesson
Manual Snowflake practice only. This website does not run SQL or provision compute. Refreshing dynamic tables uses billable resources.
Incremental, full and AUTO: choose deliberately — manual SQL
Definition: Refresh mode determines how a result is maintained. Incremental maintenance updates affected output; full refresh recomputes the result.
When to use: Practise in the isolated M12_LAB schema.
Example: Two initial rows, matching CLEAN_ORDERS at this point. SHOW distinguishes FULL from INCREMENTAL; matching rows do not imply matching cost.
CREATE DYNAMIC TABLE FULL_COMPARISON
TARGET_LAG=DOWNSTREAM WAREHOUSE=YOUR_LAB_WH
REFRESH_MODE=FULL INITIALIZE=ON_CREATE
AS SELECT ORDER_ID,CUSTOMER_ID,AMOUNT FROM RAW_ORDERS WHERE STATUS='PAID';
SHOW DYNAMIC TABLES IN SCHEMA L2_OBJECTS_LAB.M12_LAB;
SELECT * FROM FULL_COMPARISON ORDER BY ORDER_ID;What to expect and why
Two initial rows, matching CLEAN_ORDERS at this point. SHOW distinguishes FULL from INCREMENTAL; matching rows do not imply matching cost.
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
Explain why: Is incremental always cheaper for every query and every change volume?
Compare your reasoning
Measure affected work and refresh profiles; explicit modes make the intended behavior clear.