search_sorted
silently allows comparisons between different types
#18096
Labels
accepted
Ready for implementation
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
regression
Issue introduced by a new release
Checks
Reproducible example
Log output
No response
Issue description
I just noticed this as previously (it seems around <= 0.20.23) passing a string to
search_sorted
was parsed as a column name.It now seems to be parsed as a literal, but there does not seem to be a type check.
So in this case, we end up getting a "valid" result from searching an int column with a string, which seems unintended?
Expected behavior
SchemaError invalid dtype?
Installed versions
The text was updated successfully, but these errors were encountered: