From fa58c2d161ce5ee6295ca5bfa2f7b5041dac759d Mon Sep 17 00:00:00 2001 From: Grant Nicholas <43971820+grantatspothero@users.noreply.github.com> Date: Tue, 6 Oct 2020 13:13:02 -0500 Subject: [PATCH] fix(metadata-ingestion): Fix auditStamp unix timestamp format in sql etl ingestion (#1918) Datahub was expecting this timestamp to be in milliseconds since epoch, not seconds. This change makes the lastModified timestamp render correctly in the UI when it is converted to a date time string. --- metadata-ingestion/sql-etl/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-ingestion/sql-etl/common.py b/metadata-ingestion/sql-etl/common.py index d26c099deab..4b669a7d062 100644 --- a/metadata-ingestion/sql-etl/common.py +++ b/metadata-ingestion/sql-etl/common.py @@ -45,7 +45,7 @@ def build_dataset_mce(platform, dataset_name, columns): """ Creates MetadataChangeEvent for the dataset. """ - actor, sys_time = "urn:li:corpuser:etl", int(time.time()) + actor, sys_time = "urn:li:corpuser:etl", int(time.time()) * 1000 fields = [] for column in columns: