From cb6d744ae719f072b15d35c1ebaaf741c66abc35 Mon Sep 17 00:00:00 2001 From: Camilo Gutierrez <60492494+camilogutierrez@users.noreply.github.com> Date: Wed, 24 Apr 2024 07:34:02 -0500 Subject: [PATCH] feat(ingestion/bigquery): support for table clones (#10274) Co-authored-by: Equipo DataOps --- .../src/datahub/ingestion/source/bigquery_v2/queries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/queries.py b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/queries.py index 86971fce36..3545cc7743 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/queries.py +++ b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/queries.py @@ -74,7 +74,7 @@ FROM table_name) as p on t.table_name = p.table_name WHERE - table_type in ('{BigqueryTableType.BASE_TABLE}', '{BigqueryTableType.EXTERNAL}') + table_type in ('{BigqueryTableType.BASE_TABLE}', '{BigqueryTableType.EXTERNAL}', '{BigqueryTableType.CLONE}') {{table_filter}} order by table_schema ASC, @@ -101,7 +101,7 @@ FROM and t.TABLE_NAME = tos.TABLE_NAME and tos.OPTION_NAME = "description" WHERE - table_type in ('{BigqueryTableType.BASE_TABLE}', '{BigqueryTableType.EXTERNAL}') + table_type in ('{BigqueryTableType.BASE_TABLE}', '{BigqueryTableType.EXTERNAL}', '{BigqueryTableType.CLONE}') {{table_filter}} order by table_schema ASC,