Repository navigation
test(python): cover arithmetic with distance projections - #3862
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
Addressed in 11160d1. Current main containing Lance v11.0.0-beta.3 was merged into this branch, and the rebuilt extension passes both arithmetic parameter cases with the upstream Float32 scoring-column contract. |
|
Addressed in ee223cf. The regression now requests _distance explicitly with similarity, so its value assertion remains durable after scoring auto-projection is removed. Both mixed-numeric cases pass. |
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The refreshed Lance v12 base still passes both mixed-numeric _distance projections, preserves the generated Float32 schema and expected values, and emits no auto-projection warning because _distance is selected explicitly. This remains focused regression coverage for the upstream planner fix.
Summary
Root cause
Lance parsed dynamic projection expressions before vector search added its generated Float32 _distance field. Without a typed provisional field, expression discovery rejected mixed numeric arithmetic. Lance upstream fixed discovery and final-schema replanning in lance-format/lance#8163, and the current base consumes that fix through Lance v11.0.0-beta.3.
Validation
Fixes #2618