From 2ba627a8ba494e86c07982c4c2520198b3dc2d7c Mon Sep 17 00:00:00 2001 From: Ehsan Totoni Date: Tue, 22 Jul 2025 12:59:52 -0400 Subject: [PATCH 1/2] Avoid local Mac issues for test_bodo_nan --- tests/integration/test_reads.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_reads.py b/tests/integration/test_reads.py index 96844fd995..461f870727 100644 --- a/tests/integration/test_reads.py +++ b/tests/integration/test_reads.py @@ -342,7 +342,11 @@ def test_daft_nan_rewritten(catalog: Catalog) -> None: @pytest.mark.integration @pytest.mark.filterwarnings("ignore") @pytest.mark.parametrize("catalog", [pytest.lazy_fixture("session_catalog_hive"), pytest.lazy_fixture("session_catalog")]) -def test_bodo_nan(catalog: Catalog) -> None: +def test_bodo_nan(catalog: Catalog, monkeypatch: pytest.MonkeyPatch) -> None: + # Avoid local Mac issues (see GH-2225) + monkeypatch.setenv("BODO_DATAFRAME_LIBRARY_RUN_PARALLEL", "0") + monkeypatch.setenv("FI_PROVIDER", "tcp") + table_test_null_nan_rewritten = catalog.load_table("default.test_null_nan_rewritten") df = table_test_null_nan_rewritten.to_bodo() assert len(df) == 3 From c5635b8ff039b28ecca6a37145febf051dc440bc Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Tue, 22 Jul 2025 10:17:47 -0700 Subject: [PATCH 2/2] Update tests/integration/test_reads.py --- tests/integration/test_reads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_reads.py b/tests/integration/test_reads.py index 461f870727..a33b1a36bc 100644 --- a/tests/integration/test_reads.py +++ b/tests/integration/test_reads.py @@ -343,7 +343,7 @@ def test_daft_nan_rewritten(catalog: Catalog) -> None: @pytest.mark.filterwarnings("ignore") @pytest.mark.parametrize("catalog", [pytest.lazy_fixture("session_catalog_hive"), pytest.lazy_fixture("session_catalog")]) def test_bodo_nan(catalog: Catalog, monkeypatch: pytest.MonkeyPatch) -> None: - # Avoid local Mac issues (see GH-2225) + # Avoid local Mac issues (see https://github.com/apache/iceberg-python/issues/2225) monkeypatch.setenv("BODO_DATAFRAME_LIBRARY_RUN_PARALLEL", "0") monkeypatch.setenv("FI_PROVIDER", "tcp")