From c1eacf0be4f6bcfdb7ac42a826965a313c86d87a Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Fri, 9 Aug 2024 14:12:36 +0200 Subject: [PATCH] add test --- py-polars/tests/unit/io/test_parquet.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/py-polars/tests/unit/io/test_parquet.py b/py-polars/tests/unit/io/test_parquet.py index 18f15bfd40c0c..643564d6a77b4 100644 --- a/py-polars/tests/unit/io/test_parquet.py +++ b/py-polars/tests/unit/io/test_parquet.py @@ -1400,3 +1400,14 @@ def test_write_sliced_lists_18069() -> None: after = pl.read_parquet(f) assert_frame_equal(before, after) + + +def test_null_array_dict_pages_18085() -> None: + test = pd.DataFrame( + [{"A": np.NaN, "B": 3, "C": None}, {"A": float("NaN"), "B": None, "C": None}] + ) + + f = io.BytesIO() + test.to_parquet(f) + f.seek(0) + pl.read_parquet(f)