Skip to content

fix: report incompatible types in comparison steps as evaluation errors - #459

Merged
rich-iannone merged 3 commits into
mainfrom
fix-comparison-type-mismatch
Oct 15, 2026
Merged

rich-iannone merged 3 commits into
mainfrom
fix-comparison-type-mismatch

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

Comparison steps (col_vals_gt/ge/lt/le/eq/ne, col_vals_between/outside) now check, before comparing, that the column and the value or other column have compatible types. A mismatch gives an evaluation error with a note, as does a column type the method can't check. Before, these crashed interrogate() on Polars LazyFrames, DuckDB/Ibis and PySpark, or quietly gave wrong results on pandas and Polars. Date strings against date columns, and integers against floats, still work.

@rich-iannone
rich-iannone merged commit 0c772e5 into main Oct 15, 2026
10 checks passed
@rich-iannone
rich-iannone deleted the fix-comparison-type-mismatch branch October 15, 2026 02:34

This branch was successfully deployed

1 active deployment
pr-459 — 3f19b745 Deployed Oct 15, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant