From 3be3ac0f06ec7e7c9eb57e8475fe6e11d4c3a378 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..9ea247cb9c8f5 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": np.NaN, "B": None, "C": None}] + ) + + f = io.BytesIO() + test.to_parquet(f) + f.seek(0) + pl.read_parquet(f)