-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntFieldIndex LowerBound and ReverseLowerBound iterating incorrectly #96
Comments
Thank you for the bug report! Which version of We recently merged PR #93 which fixed a sorting issue with uint. I wonder if the same bug exists for |
I don't know exactly but in goplayground (latest package if I don't mistake) it has the same behaviour |
This bug appears to be in the IntFieldIndex as well. I'm indexing int64 fields but they don't sort correctly with IntFieldIndex. Converting the fields to uint64 and using the UintFieldIndex works as intended. |
This change resolves a test failure in the js-sdk caused by an unexpected MemDB search behavior. The issue stems from the `ReverseLowerBound` method behaving differently for unique and non-unique indexes. Key changes: - Set `doc_id_actor_id_server_seq` index as unique - Ensures correct record retrieval in `FindMinSyncedSeqInfo` - Resolves `ConnectError: [internal] change not found` during DetachDocument Addressed a known MemDB limitation where index uniqueness affects search behavior, referencing hashicorp/go-memdb#96.
When using large numbers in int field the following behavior is occuring
`
`
People aged 25 - 35:
Dorothy is aged 530000000000
Lucy is aged 350000000000
Dorothy is aged 180000000000
If we will remove * 10000000000 from the code we will get the following ouptut
People aged 25 - 35:
Tariq is aged 21
Dorothy is aged 18
Which is correct
The text was updated successfully, but these errors were encountered: