File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
metadata-ingestion/src/datahub Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 123
123
ViewPropertiesClass ,
124
124
)
125
125
from datahub .utilities .mapping import Constants , OperationProcessor
126
+ from datahub .utilities .time import datetime_to_ts_millis
126
127
127
128
logger = logging .getLogger (__name__ )
128
129
DBT_PLATFORM = "dbt"
@@ -1684,7 +1685,7 @@ def get_schema_metadata(
1684
1685
if node .max_loaded_at is not None :
1685
1686
actor = mce_builder .make_user_urn ("dbt_executor" )
1686
1687
last_modified = AuditStamp (
1687
- time = int (node .max_loaded_at . timestamp () * 1000 ),
1688
+ time = datetime_to_ts_millis (node .max_loaded_at ),
1688
1689
actor = actor ,
1689
1690
)
1690
1691
Original file line number Diff line number Diff line change @@ -11,6 +11,4 @@ def get_datetime_from_ts_millis_in_utc(ts_millis: int) -> datetime:
11
11
12
12
13
13
def datetime_to_ts_millis (dt : datetime ) -> int :
14
- return int (
15
- round (dt .timestamp () * 1000 ),
16
- )
14
+ return int (round (dt .timestamp () * 1000 ))
You can’t perform that action at this time.
0 commit comments