Repository navigation
docs(#314): the float text of to_json() and the last digits of vector distances differ between the packages - #469
Merged
Conversation
… distances differ between the packages Items 2 and 4 of the status comment on #314 stay open as documentation points: the values are equal (a FLOAT or float32 array reads back as the same float32 from either text), the text is not, and a vector distance that does not round exactly in float32 differs in the sixth digit between the packages. The figures are the ones the golden test (tests/test_cross_wheel_golden.py) records for each build. The Antora build of docs/ passes with no warning.
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.
What does this PR do?
It writes down the two differences of #314 that the status comment of 2026-11-22 left as documentation points. On the Results page:
Result.to_json()writes aFLOATor afloat32array as the shortestfloat32text onarcadedb-jvm(0.1) and as the exactfloat64it widens to onarcadedb(0.10000000149011612), both read back as the samefloat32, andto_json_list()has no such difference. On the Vectors page: a distance is afloat32value, so where it does not round exactly the two packages can differ in the sixth significant digit, and two calls of one search onarcadedb-jvmcan differ in the last bits.The values come from the probe of #446 and the docstring of
tests/test_cross_wheel_golden.py, which gives each build's value; I did not measure them again for this PR. I only wrote the two paragraphs.Related issues
Closes #314. The other items of its status comment have their own issues: the integral
DECIMALis done (#452, in #456), theDATEandDATETIMEof a projection row is #453, and the non-ASCII text ofto_json()is #454.Docs
docs/modules/ROOT/pages/how-to/databases-and-queries.adocanddocs/modules/ROOT/pages/how-to/vectors.adoc.npx -p @antora/[email protected] -p @antora/[email protected] antora docs/antora-playbook.ymlbuilds with no warning, and the rendered Vectors page has the sentence.Checklist
uvx pre-commit run --files <changed files>passes