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: