VALUES clause supported with dynamic table incremental refresh
The VALUES clause is now supported with dynamic table incremental refresh in Snowflake, allowing static lookup tables in joins.
O que mudou
Use cases
Imagine you have a dynamic table that needs to join transactional data with a small, fixed reference list, such as status codes or categories, without creating a physical lookup table.
- Join dynamic tables with static lists of values.
- Maintain incremental refresh (INCREMENTAL, AUTO, and ADAPTIVE modes) without breaking the data flow.
How to use
You can declare the VALUES clause directly within the FROM clause of your dynamic table query.
CREATE OR REPLACE DYNAMIC TABLE my_dynamic_table
TARGET_LAG = '1 hour'
WAREHOUSE = my_warehouse
AS
SELECT t.id, v.column2
FROM my_base_table AS t
INNER JOIN (VALUES (1, 'active'), (2, 'inactive')) AS v (id, status_desc)
ON t.status_id = v.id;
What happens in this code:
- The dynamic table is created with a one-hour target lag.
- The query performs a JOIN between the base table and a static list generated via VALUES.
- Snowflake processes the VALUES clause while keeping incremental refresh support enabled.
Limitations and requirements
- Generally available (GA) for INCREMENTAL, AUTO, and ADAPTIVE refresh modes.
- The VALUES clause is limited to a maximum of 200,000 rows.
- The DEFAULT keyword is not supported inside a VALUES clause within a FROM clause.
- dynamic tables
- incremental refresh
- sql
- values
VALUES clause is supported with dynamic table incremental refresh (General availability)
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- SnowflakeGA
Geração de documentos em PDF, Word e PowerPoint no Snowflake CoWork
O Snowflake CoWork agora gera arquivos PDF, Word, PowerPoint e HTML diretamente de suas análises usando a ferramenta de execução de código do Cortex Agent.
snowflake cowork · cortex agent - SnowflakePublic Preview
Cortex Agent SDK para Python e TypeScript no Snowflake
O Cortex Agent SDK permite criar aplicações que utilizam Cortex Agents e Cortex Code em Python e TypeScript.
cortex agents · python - SnowflakeAtualização
Mensagens de erro mais detalhadas na classificação de dados sensíveis
A view DATA_CLASSIFICATION_LATEST agora traz mensagens de erro específicas e códigos do Snowflake para falhas na classificação.
data governance · trust center