Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix typo in SchemaError exception message #17350

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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