Skip to content

Commit

Permalink
fix: Bad null handling in unordered row encoding (#21603)
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp authored Mar 5, 2025
1 parent db551fb commit b79df25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-row/src/variable/no_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub unsafe fn decode_variable_no_order(
validity.push(sentinel != 0xFF);
if sentinel == 0xFF {
array.push_value_ignore_validity("");
break;
continue;
}

let length = if sentinel < 0xFE {
Expand Down
12 changes: 12 additions & 0 deletions py-polars/tests/unit/streaming/test_streaming_group_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,3 +519,15 @@ def test_streaming_group_by_boolean_mean_15610(
)

assert_frame_equal(out, expect)


def test_streaming_group_by_all_null_21593() -> None:
df = pl.DataFrame(
{
"col_1": ["A", "B", "C", "D"],
"col_2": ["test", None, None, None],
}
)

out = df.lazy().group_by(pl.all()).min().collect(new_streaming=True) # type: ignore[call-overload]
assert_frame_equal(df, out, check_row_order=False)

0 comments on commit b79df25

Please sign in to comment.