mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-12 18:47:45 +00:00
fix(ingest/bigquery): remove last modified timestamp fallback (#10431)
This commit is contained in:
parent
6a24ed2743
commit
1dae37a8ed
@ -275,7 +275,7 @@ class BigQuerySchemaApi:
|
||||
table.get("last_altered") / 1000, tz=timezone.utc
|
||||
)
|
||||
if table.get("last_altered") is not None
|
||||
else table.created,
|
||||
else None,
|
||||
size_in_bytes=table.get("bytes"),
|
||||
rows_count=table.get("row_count"),
|
||||
comment=table.comment,
|
||||
@ -339,7 +339,7 @@ class BigQuerySchemaApi:
|
||||
view.get("last_altered") / 1000, tz=timezone.utc
|
||||
)
|
||||
if view.get("last_altered") is not None
|
||||
else view.created,
|
||||
else None,
|
||||
comment=view.comment,
|
||||
view_definition=view.view_definition,
|
||||
materialized=view.table_type == BigqueryTableType.MATERIALIZED_VIEW,
|
||||
@ -487,7 +487,7 @@ class BigQuerySchemaApi:
|
||||
snapshot.get("last_altered") / 1000, tz=timezone.utc
|
||||
)
|
||||
if snapshot.get("last_altered") is not None
|
||||
else snapshot.created,
|
||||
else None,
|
||||
comment=snapshot.comment,
|
||||
ddl=snapshot.ddl,
|
||||
snapshot_time=snapshot.snapshot_time,
|
||||
|
||||
@ -4,7 +4,6 @@ services:
|
||||
image: mysql:8
|
||||
# image: mariadb:10.5.8 # Uncomment to run on m1
|
||||
container_name: "testmysql"
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: example
|
||||
ports:
|
||||
|
||||
@ -829,7 +829,7 @@ def bigquery_view_2() -> BigqueryView:
|
||||
return BigqueryView(
|
||||
name="table2",
|
||||
created=now,
|
||||
last_altered=now,
|
||||
last_altered=None,
|
||||
comment="comment2",
|
||||
view_definition="CREATE VIEW 2",
|
||||
materialized=True,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user