From b9f90e13c3b03a5d705fa154cecebfdcc7794bab Mon Sep 17 00:00:00 2001 From: treff7es Date: Tue, 15 Nov 2022 22:56:47 +0100 Subject: [PATCH] Fixing top query trimming in snowflake --- .../datahub/ingestion/source/snowflake/snowflake_usage_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_usage_v2.py b/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_usage_v2.py index 60e0b3874d081..c0d4408abe230 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_usage_v2.py +++ b/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_usage_v2.py @@ -194,7 +194,7 @@ def _map_top_sql_queries(self, top_sql_queries: Dict) -> List[str]: [ trim_query(format_sql_query(query), budget_per_query) if self.config.format_sql_queries - else query + else trim_query(query, budget_per_query) for query in top_sql_queries ] )