diff --git a/ingestion/src/metadata/ingestion/source/dashboard/powerbi/metadata.py b/ingestion/src/metadata/ingestion/source/dashboard/powerbi/metadata.py index 7b67a7d4fea5..3f4815796fa7 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/powerbi/metadata.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/powerbi/metadata.py @@ -1154,10 +1154,19 @@ def _parse_bigquery_source( # Check if this is a direct BigQuery connection if "GoogleBigQuery.Database" not in source_expression: + logger.debug( + "GoogleBigQuery.Database not found in source expression " + f"for datamodel: {datamodel_entity.name.root}, table: {table.name}" + ) return None # Handle Value.NativeQuery with inline SQL if BIGQUERY_QUERY_EXPRESSION_KW in source_expression: + logger.debug( + "Parsing BigQuery NativeQuery source expression " + f"through query parser: {source_expression}\nfor " + f"datamodel: {datamodel_entity.name.root}, table: {table.name}" + ) return self._parse_bigquery_query_source(source_expression) logger.debug(f"Found GoogleBigQuery.Database in expression") @@ -1170,7 +1179,10 @@ def _parse_bigquery_source( ) if not name_matches: - logger.debug("No Name patterns found in BigQuery expression") + logger.debug( + "No Name patterns found in BigQuery expression for " + f"datamodel: {datamodel_entity.name.root}, table: {table.name}" + ) return None # BigQuery structure: project -> dataset (Schema) -> table (Table/View) @@ -1192,7 +1204,8 @@ def _parse_bigquery_source( ) if not table_name: logger.debug( - f"Parsing BigQuery source expression for powerbi table ({table.name}):: {source_expression}" + "Table name not found in Parsing BigQuery source expression for " + f"datamodel: {datamodel_entity.name.root}, powerbi table ({table.name}): {source_expression}" ) if table_name: return [{"database": project, "schema": dataset, "table": table_name}]