Data lineage preservation through temporary tables and views
Snowflake now automatically preserves data and column lineage through temporary tables and views even after they are dropped.
O que mudou
Use cases
Imagine you use a temporary table to stage intermediate data before loading it into a final destination table. When the temporary table is dropped, the lineage connection used to break. Now, Snowflake keeps this connection end-to-end.
- Trace data origins that flow through temporary objects.
- View complete lineage graphs in Snowsight after sessions end.
- Maintain accurate column and table metadata.
How to use
Creating temporary tables and querying lineage uses standard Snowflake syntax.
CREATE OR REPLACE TEMPORARY TABLE lineage_tmp AS
SELECT s1.id, s1.amount, s2.region
FROM lineage_src_1 s1
JOIN lineage_src_2 s2
ON s1.id = s2.id;
CREATE OR REPLACE TABLE lineage_dest AS
SELECT id, region
FROM lineage_tmp;
What happens in this code:
- Creates a temporary table by joining two sources.
- Builds a destination table from the temporary table.
To query lineage after dropping the intermediate object:
DROP TABLE lineage_tmp;
SELECT *
FROM TABLE(
SNOWFLAKE.CORE.GET_LINEAGE(
'lineage_db.public.lineage_dest',
'TABLE',
'UPSTREAM',
5));
What happens in this code:
- Drops the temporary table from the session.
- Runs the
GET_LINEAGEfunction to verify that the relationship between source and destination is preserved.
Limitations and requirements
- Generally available for Enterprise Edition or higher.
- Supported only for temporary tables and temporary views acting as a genuine bridge (having both an upstream source and a downstream destination).
- Not supported for transient tables.
- Supports temporary node chains of up to 10 nodes.
Using it in a pipeline
This ensures pipelines using temporary staging tables do not lose dependency history and lineage tracking down to Gold tables.
- data lineage
- temporary tables
- temporary views
- get_lineage
- column lineage
Lineage preservation through temporary tables and views (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