Skip to content

Commit b7b5ba1

Browse files
committed
add integration test
1 parent 9befbaa commit b7b5ba1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/integration/test_reads.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,15 @@ def test_daft_nan_rewritten(catalog: Catalog) -> None:
344344
assert math.isnan(df.to_pydict()["col_numeric"][0])
345345

346346

347+
@pytest.mark.integration
348+
@pytest.mark.parametrize("catalog", [pytest.lazy_fixture("session_catalog_hive"), pytest.lazy_fixture("session_catalog")])
349+
def test_bodo_nan(catalog: Catalog) -> None:
350+
table_test_null_nan_rewritten = catalog.load_table("default.test_null_nan_rewritten")
351+
df = table_test_null_nan_rewritten.to_bodo()
352+
assert len(df) == 3
353+
assert math.isnan(df.col_numeric.iloc[0])
354+
355+
347356
@pytest.mark.integration
348357
@pytest.mark.filterwarnings("ignore")
349358
@pytest.mark.parametrize("catalog", [pytest.lazy_fixture("session_catalog_hive"), pytest.lazy_fixture("session_catalog")])

0 commit comments

Comments
 (0)