Repository navigation
test: pin merge_insert of a source holding both float zeros - #86
Closed
slachiewicz wants to merge 2 commits into
Closed
slachiewicz wants to merge 2 commits into
slachiewicz wants to merge 2 commits into
Conversation
-0.0 and +0.0 are one key now, so a source holding both matches each zero target row twice: Fail rejects it as ambiguous, FirstSeen updates each once. Also note in compact_blank_source why its validating take is safe.
slachiewicz
marked this pull request as ready for review
October 18, 2026 10:19
Member
|
Thanks! I've pulled those commits in during my merge, so closing this PR now that I have them on the branch. I really appreciate it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to my review of lance-format#9979, for you to pull in if useful.
test_merge_insert_source_with_both_float_zerospins the new signed-zero behaviour from the source side: a source holding both-0.0and+0.0is one key twice, so the defaultSourceDedupeBehavior::Failrejects it as an ambiguous merge andFirstSeenupdates each zero row once (with either source value, depending on join order). Bothuse_indexsettings are covered.compact_blank_sourcesays why its validatingtakeis safe: the row comes from storage, and the map decoder already builds maps withMapArray::try_new(lance-encoding/src/encodings/logical/map.rs:229).key_values_probes_both_zero_encodingspins that a float zero join key is probed under both encodings inMapIndexExec::key_values: the zero row yields two values, so four rows give five values without dedupe and four with it, and an integer zero or NaN is not expanded.Verified:
cargo test -p lance --libfor the three tests on ubuntu-24.04 → 7 passed,cargo fmt -p lance -- --checkclean (run).