Problem Statement/Rationale
When querying a collection with a document with a Int64, from the mongosh client in compass with the following example query:
db.xp.findOne({"not_the_affected_field": "not the affected text"})
|
I get my document returned. However the last two digits of the numbers in that document (mostly long ids, 60 bit) are returned as zeros. Comparing this to the result from a bash mongosh client, the numbers are returned and shown as Long("1234512345"),
Please be sure to attach relevant logs with any sensitive data redacted.{}
Steps to Reproduce
Create collection
Add document with a field with a long number (more than 32 bit) in it
Query for that document by another field
Last two digits are shown as 0s
example from above: 1234512300
Expected Results
What do you expect to happen?
Either: Long("1234512345") or 1234513245
Actual Results
What do you observe is happening?
1234512300
Additional Notes
Any additional information that may be useful to include.
Server is docker server image latest as of yesterday.
|