Skip to content

Commit

Permalink
Add test for invalid sort_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Feb 5, 2025
1 parent 7cd3542 commit 86d7827
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pyarrow/tests/test_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -3388,6 +3388,9 @@ def test_rank_quantile_options():
expected_descending = pa.array([0.7, 0.3, 0.7, 0.1, 0.7], type=pa.float64())
assert result.equals(expected_descending)

with pytest.raises(ValueError, match="not a valid sort order"):
pc.rank_quantile(arr, sort_keys="XXX")


def create_sample_expressions():
# We need a schema for substrait conversion
Expand Down

0 comments on commit 86d7827

Please sign in to comment.