From 4ddc4c28be217640e11d63a9f1b0fd9ab5be8d95 Mon Sep 17 00:00:00 2001 From: Kevin Hu <6051736+kevinhu@users.noreply.github.com> Date: Tue, 22 Jun 2021 13:55:29 -0700 Subject: [PATCH] fix(ingest): fix lookml platform URN (#2742) --- metadata-ingestion/src/datahub/ingestion/source/lookml.py | 2 +- .../tests/integration/lookml/expected_output.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/lookml.py b/metadata-ingestion/src/datahub/ingestion/source/lookml.py index b07ca3ec89..b875e5904d 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/lookml.py +++ b/metadata-ingestion/src/datahub/ingestion/source/lookml.py @@ -478,7 +478,7 @@ class LookMLSource(Source): # pragma: no cover stamp = AuditStamp(time=sys_time, actor=actor) schema_metadata = SchemaMetadata( schemaName=looker_view.view_name, - platform=self.source_config.platform_name, + platform=f"urn:li:dataPlatform:{self.source_config.platform_name}", version=0, fields=fields, primaryKeys=primary_keys, diff --git a/metadata-ingestion/tests/integration/lookml/expected_output.json b/metadata-ingestion/tests/integration/lookml/expected_output.json index a18bddef60..840a2d37ed 100644 --- a/metadata-ingestion/tests/integration/lookml/expected_output.json +++ b/metadata-ingestion/tests/integration/lookml/expected_output.json @@ -28,7 +28,7 @@ { "com.linkedin.pegasus2avro.schema.SchemaMetadata": { "schemaName": "my_view", - "platform": "looker", + "platform": "urn:li:dataPlatform:looker", "version": 0, "created": { "time": 1615443388000,