Skip to content

Commit

Permalink
fix: Fix typo in SchemaError exception message (pola-rs#17350)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdlineluser authored Jul 2, 2024
1 parent 91a423f commit 663fe4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/polars-core/src/series/comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ macro_rules! impl_compare {
_ => (),
};

let (lhs, rhs) = coerce_lhs_rhs(lhs, rhs).map_err(|_| polars_err!(SchemaMismatch: "could not evalulate comparison between series '{}' of dtype: {} and series '{}' of dtype: {}",
let (lhs, rhs) = coerce_lhs_rhs(lhs, rhs).map_err(|_| polars_err!(SchemaMismatch: "could not evaluate comparison between series '{}' of dtype: {} and series '{}' of dtype: {}",
lhs.name(), lhs.dtype(), rhs.name(), rhs.dtype()))?;
let lhs = lhs.to_physical_repr();
let rhs = rhs.to_physical_repr();
Expand Down
2 changes: 1 addition & 1 deletion py-polars/tests/unit/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def test_raise_on_sorted_multi_args() -> None:
def test_err_invalid_comparison() -> None:
with pytest.raises(
SchemaError,
match="could not evalulate comparison between series 'a' of dtype: date and series 'b' of dtype: bool",
match="could not evaluate comparison between series 'a' of dtype: date and series 'b' of dtype: bool",
):
_ = pl.Series("a", [date(2020, 1, 1)]) == pl.Series("b", [True])

Expand Down

0 comments on commit 663fe4c

Please sign in to comment.