Skip to content

Commit

Permalink
fix(rust, python): fix parquet regression upstream in arrow2 (#5797)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 13, 2022
1 parent d29fa30 commit 0bc2768
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package = "arrow2"
git = "https://github.com/ritchie46/arrow2"
# rev = "368aacc173a27e2a763d2c6396682a688e5a2707"
# path = "../arrow2"
branch = "polars_2022-12-11"
branch = "polars_2022-12-13"
version = "0.14.1"
default-features = false
features = [
Expand Down
9 changes: 5 additions & 4 deletions py-polars/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion py-polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "py-polars"
version = "0.15.4"
version = "0.15.5"
authors = ["ritchie46 <ritchie46@gmail.com>"]
documentation = "https://pola-rs.github.io/polars/py-polars/html/reference/index.html"
edition = "2021"
Expand Down
33 changes: 33 additions & 0 deletions py-polars/tests/unit/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,36 @@ def test_nested_sliced() -> None:
df.write_parquet(f)
f.seek(0)
assert pl.read_parquet(f).frame_equal(df)


def test_parquet_5795() -> None:
df_pd = pd.DataFrame(
{
"a": [
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
"V",
None,
None,
None,
None,
None,
None,
]
}
)
f = io.BytesIO()
df_pd.to_parquet(f)
f.seek(0)
assert pl.read_parquet(f).frame_equal(pl.from_pandas(df_pd))

0 comments on commit 0bc2768

Please sign in to comment.