From 4683bc73a3448cddff99641ccd81bbce05b2b127 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Thu, 12 Dec 2024 16:51:08 -0500 Subject: [PATCH] fix(ingest/snowflake): further improve dot handling (#12110) --- .../src/datahub/ingestion/source/snowflake/snowflake_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_utils.py b/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_utils.py index d8c3075bd921b..8e0c97aa135e8 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_utils.py +++ b/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_utils.py @@ -119,7 +119,6 @@ def is_dataset_pattern_allowed( ) -> bool: if not dataset_type or not dataset_name: return True - dataset_params = dataset_name.split(".") if dataset_type.lower() not in ( SnowflakeObjectDomain.TABLE, SnowflakeObjectDomain.EXTERNAL_TABLE, @@ -131,6 +130,7 @@ def is_dataset_pattern_allowed( if _is_sys_table(dataset_name): return False + dataset_params = _split_qualified_name(dataset_name) if len(dataset_params) != 3: self.structured_reporter.info( title="Unexpected dataset pattern",