From a03b35e1676c759b8eafff66ceeec2ffd21c839c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20G=C3=B3mez=20Villamor?= Date: Tue, 13 May 2025 08:22:12 +0200 Subject: [PATCH] chore(hex): debug logs (#13473) --- metadata-ingestion/src/datahub/ingestion/source/hex/hex.py | 7 ++++++- .../src/datahub/ingestion/source/hex/query_fetcher.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/hex/hex.py b/metadata-ingestion/src/datahub/ingestion/source/hex/hex.py index 537e8b39dd..808a1af767 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/hex/hex.py +++ b/metadata-ingestion/src/datahub/ingestion/source/hex/hex.py @@ -283,7 +283,12 @@ class HexSource(StatefulIngestionSourceBase): self.report.report_warning( title="Missing project for lineage", message="Lineage missed because missed project, likely due to filter patterns or deleted project.", - context=str(query_metadata), + context=str( + dict( + query_urn=query_metadata.urn, + hex_project_id=query_metadata.hex_project_id, + ) + ), ) with self.report.new_stage("Emit"): diff --git a/metadata-ingestion/src/datahub/ingestion/source/hex/query_fetcher.py b/metadata-ingestion/src/datahub/ingestion/source/hex/query_fetcher.py index 386069f7fd..03eb064c98 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/hex/query_fetcher.py +++ b/metadata-ingestion/src/datahub/ingestion/source/hex/query_fetcher.py @@ -213,6 +213,7 @@ class HexQueryFetcher: if not match: self.report.filtered_out_queries_no_match += 1 + logger.debug(f"No match for Hex metadata in SQL statement: {sql_statement}") return None try: