diff --git a/Cargo.toml b/Cargo.toml index 0e795884d939..8f261325c5db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,8 +35,8 @@ package = "arrow2" # git = "https://github.com/jorgecarleitao/arrow2" git = "https://github.com/ritchie46/arrow2" # rev = "368aacc173a27e2a763d2c6396682a688e5a2707" -# path = "../../../arrow2" -branch = "polars_2022-12-10" +# path = "../arrow2" +branch = "polars_2022-12-11" version = "0.14.1" default-features = false features = [ diff --git a/py-polars/Cargo.lock b/py-polars/Cargo.lock index a4366c30a4e5..3c31cebfd3ee 100644 --- a/py-polars/Cargo.lock +++ b/py-polars/Cargo.lock @@ -96,7 +96,7 @@ dependencies = [ [[package]] name = "arrow2" version = "0.14.2" -source = "git+https://github.com/ritchie46/arrow2?branch=polars_2022-12-10#09c32382fc54e427929228fa551ab6e46578fb22" +source = "git+https://github.com/ritchie46/arrow2?branch=polars_2022-12-11#80359ce87a1d15d3ce999f4290a101c5723af113" dependencies = [ "ahash 0.8.1", "arrow-format", diff --git a/py-polars/tests/unit/io/test_parquet.py b/py-polars/tests/unit/io/test_parquet.py index a6157bd45eac..fd9ee6efaf01 100644 --- a/py-polars/tests/unit/io/test_parquet.py +++ b/py-polars/tests/unit/io/test_parquet.py @@ -250,3 +250,17 @@ def test_row_group_size_saturation() -> None: df.write_parquet(f, row_group_size=1024) f.seek(0) assert pl.read_parquet(f).frame_equal(df) + + +def test_nested_sliced() -> None: + for df in [ + pl.Series([[1, 2], [3, 4], [5, 6]]).slice(2, 2).to_frame(), + pl.Series([[None, 2], [3, 4], [5, 6]]).to_frame(), + pl.Series([[None, 2], [3, 4], [5, 6]]).slice(2, 2).to_frame(), + pl.Series([["a", "a"], ["", "a"], ["c", "de"]]).slice(3, 2).to_frame(), + pl.Series([[None, True], [False, False], [True, True]]).slice(2, 2).to_frame(), + ]: + f = io.BytesIO() + df.write_parquet(f) + f.seek(0) + assert pl.read_parquet(f).frame_equal(df)