diff --git a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_schema_gen.py b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_schema_gen.py index 1235f638f68ff..f53642d1fead2 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_schema_gen.py +++ b/metadata-ingestion/src/datahub/ingestion/source/bigquery_v2/bigquery_schema_gen.py @@ -310,7 +310,7 @@ def gen_dataset_containers( logger.warning( f"Failed to generate platform resource for label {k}:{v}: {e}" ) - tags_joined.append(tag_urn.urn()) + tags_joined.append(tag_urn.name) database_container_key = self.gen_project_id_key(database=project_id) diff --git a/metadata-ingestion/tests/integration/bigquery_v2/bigquery_mcp_golden.json b/metadata-ingestion/tests/integration/bigquery_v2/bigquery_mcp_golden.json index 458370cf8ad6b..5e091596cc0f7 100644 --- a/metadata-ingestion/tests/integration/bigquery_v2/bigquery_mcp_golden.json +++ b/metadata-ingestion/tests/integration/bigquery_v2/bigquery_mcp_golden.json @@ -121,7 +121,7 @@ "json": { "tags": [ { - "tag": "urn:li:tag:urn:li:tag:priority:medium:test" + "tag": "urn:li:tag:priority:medium:test" } ] } @@ -1321,12 +1321,12 @@ }, { "entityType": "tag", - "entityUrn": "urn:li:tag:urn:li:tag:priority:medium:test", + "entityUrn": "urn:li:tag:priority:medium:test", "changeType": "UPSERT", "aspectName": "tagKey", "aspect": { "json": { - "name": "urn:li:tag:priority:medium:test" + "name": "priority:medium:test" } }, "systemMetadata": {