From dac739a1012a7c06c4afc8a418fac9bf640a4bd8 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Wed, 20 Sep 2023 11:38:11 -0700 Subject: [PATCH] fix(ingest/bigquery): show report in output Follow up on https://github.com/datahub-project/datahub/pull/8626. --- .../datahub/ingestion/source/bigquery_v2/bigquery_report.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_report.py b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_report.py index 2d6882caa38ef..61898e224feb7 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_report.py +++ b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_report.py @@ -6,6 +6,7 @@ import pydantic +from datahub.ingestion.api.report import Report from datahub.ingestion.source.sql.sql_generic_profiler import ProfilingSqlReport from datahub.ingestion.source_report.ingestion_stage import IngestionStageReport from datahub.ingestion.source_report.time_window import BaseTimeWindowReport @@ -16,7 +17,7 @@ logger: logging.Logger = logging.getLogger(__name__) -class BigQuerySchemaApiPerfReport: +class BigQuerySchemaApiPerfReport(Report): list_projects = PerfTimer() list_datasets = PerfTimer() get_columns_for_dataset = PerfTimer() @@ -25,7 +26,7 @@ class BigQuerySchemaApiPerfReport: get_views_for_dataset = PerfTimer() -class BigQueryAuditLogApiPerfReport: +class BigQueryAuditLogApiPerfReport(Report): get_exported_log_entries = PerfTimer() list_log_entries = PerfTimer()