Compare columns against values of the same type to avoid silent casts that disable indexes.
Why This Matters
Comparing a string column to a number (or vice versa) forces a per-row cast and skips the index.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.