From f7a3062c66281ed0a301bdd06c8a0a042e09a19d Mon Sep 17 00:00:00 2001 From: ulixius9 Date: Mon, 2 Dec 2024 23:46:10 +0530 Subject: [PATCH] MINOR: Snowflake Support Alter Table Swap Lineage --- .../src/metadata/ingestion/source/database/snowflake/lineage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ingestion/src/metadata/ingestion/source/database/snowflake/lineage.py b/ingestion/src/metadata/ingestion/source/database/snowflake/lineage.py index f2fd998076a0..d1b210b52838 100644 --- a/ingestion/src/metadata/ingestion/source/database/snowflake/lineage.py +++ b/ingestion/src/metadata/ingestion/source/database/snowflake/lineage.py @@ -42,6 +42,7 @@ class SnowflakeLineageSource( AND ( QUERY_TYPE IN ('MERGE', 'UPDATE','CREATE_TABLE_AS_SELECT') OR (QUERY_TYPE = 'INSERT' and query_text ILIKE '%%insert%%into%%select%%') + OR (QUERY_TYPE = 'ALTER' and query_text ILIKE '%%alter%%table%%swap%%') ) """