From 1c11568271518580962ba4ed0a56a953356ee834 Mon Sep 17 00:00:00 2001 From: Martyn Gigg Date: Mon, 8 Jun 2026 17:01:26 +0100 Subject: [PATCH] Catch nan strings that look like floats to Python. An exception was beong thrown saying float did not have a replace method. The value of the cell was nan. Just leave this as it is. --- .github/workflows/rest-catalog-tests.yml | 6 +++--- .../ingest/accelerator/opralogweb/opralogweb.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rest-catalog-tests.yml b/.github/workflows/rest-catalog-tests.yml index f000c40b..63192552 100644 --- a/.github/workflows/rest-catalog-tests.yml +++ b/.github/workflows/rest-catalog-tests.yml @@ -7,15 +7,15 @@ on: - ".github/workflows/rest-catalog-tests.yml" - "infra/ansible/roles/lakekeeper/files/bootstrap-warehouse.py" - "elt-common/**" - - "warehouses/facility_ops_landing/extract_load/opralogweb/**" + - "warehouses/facility_ops_landing/ingest/accelerator/opralogweb/**" - "warehouses/facility_ops/transform/**" pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] paths: - ".github/workflows/rest-catalog-tests.yml" - "infra/ansible/roles/lakekeeper/files/bootstrap-warehouse.py" - "elt-common/**" - - "warehouses/facility_ops_landing/extract_load/opralogweb/**" + - "warehouses/facility_ops_landing/ingest/accelerator/opralogweb/**" - "warehouses/facility_ops/transform/**" concurrency: diff --git a/warehouses/facility_ops_landing/ingest/accelerator/opralogweb/opralogweb.py b/warehouses/facility_ops_landing/ingest/accelerator/opralogweb/opralogweb.py index bafea90d..e63ef833 100755 --- a/warehouses/facility_ops_landing/ingest/accelerator/opralogweb/opralogweb.py +++ b/warehouses/facility_ops_landing/ingest/accelerator/opralogweb/opralogweb.py @@ -114,7 +114,7 @@ def additional_comment_to_markdown(table: pa.Table) -> pa.Table: pa.array( table[column_name] .to_pandas() - .apply(lambda x: x if x is None else html2text(x)) + .apply(lambda x: html2text(x) if isinstance(x, str) else x) ), )