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
|
table.get("last_altered") / 1000, tz=timezone.utc
|
||||||
)
|
)
|
||||||
if table.get("last_altered") is not None
|
if table.get("last_altered") is not None
|
||||||
else table.created,
|
else None,
|
||||||
size_in_bytes=table.get("bytes"),
|
size_in_bytes=table.get("bytes"),
|
||||||
rows_count=table.get("row_count"),
|
rows_count=table.get("row_count"),
|
||||||
comment=table.comment,
|
comment=table.comment,
|
||||||
@ -339,7 +339,7 @@ class BigQuerySchemaApi:
|
|||||||
view.get("last_altered") / 1000, tz=timezone.utc
|
view.get("last_altered") / 1000, tz=timezone.utc
|
||||||
)
|
)
|
||||||
if view.get("last_altered") is not None
|
if view.get("last_altered") is not None
|
||||||
else view.created,
|
else None,
|
||||||
comment=view.comment,
|
comment=view.comment,
|
||||||
view_definition=view.view_definition,
|
view_definition=view.view_definition,
|
||||||
materialized=view.table_type == BigqueryTableType.MATERIALIZED_VIEW,
|
materialized=view.table_type == BigqueryTableType.MATERIALIZED_VIEW,
|
||||||
@ -487,7 +487,7 @@ class BigQuerySchemaApi:
|
|||||||
snapshot.get("last_altered") / 1000, tz=timezone.utc
|
snapshot.get("last_altered") / 1000, tz=timezone.utc
|
||||||
)
|
)
|
||||||
if snapshot.get("last_altered") is not None
|
if snapshot.get("last_altered") is not None
|
||||||
else snapshot.created,
|
else None,
|
||||||
comment=snapshot.comment,
|
comment=snapshot.comment,
|
||||||
ddl=snapshot.ddl,
|
ddl=snapshot.ddl,
|
||||||
snapshot_time=snapshot.snapshot_time,
|
snapshot_time=snapshot.snapshot_time,
|
||||||
|
|||||||
@ -4,7 +4,6 @@ services:
|
|||||||
image: mysql:8
|
image: mysql:8
|
||||||
# image: mariadb:10.5.8 # Uncomment to run on m1
|
# image: mariadb:10.5.8 # Uncomment to run on m1
|
||||||
container_name: "testmysql"
|
container_name: "testmysql"
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: example
|
MYSQL_ROOT_PASSWORD: example
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -829,7 +829,7 @@ def bigquery_view_2() -> BigqueryView:
|
|||||||
return BigqueryView(
|
return BigqueryView(
|
||||||
name="table2",
|
name="table2",
|
||||||
created=now,
|
created=now,
|
||||||
last_altered=now,
|
last_altered=None,
|
||||||
comment="comment2",
|
comment="comment2",
|
||||||
view_definition="CREATE VIEW 2",
|
view_definition="CREATE VIEW 2",
|
||||||
materialized=True,
|
materialized=True,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user