Issue with searching by int64 fields

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • No version
    • Affects Version/s: 1.42.5
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None
    • Developer Tools

      Problem Statement/Rationale

      Compass ignore last 2 digits of the number from the query.

      Steps to Reproduce

      1. Create a document

      ```

      {   "_id": 1233393892850663424 }

      ```

      2. Search by query `{_id: 1233393892850663400}`

      Pay attention: Last 2 digits of the number in the query isn't the same as in the inserted document.

      3. Receive the inserted document (from the step 1) by the query with another id (from the step 2)

      Expected Results

      Documents appear in the result only in the case of complete matching. 

      Actual Results

      The document appears in the result even when there is a search by another id.

      Additional Notes{}

      The same problem can affect inserting new documents by the Compass.

            Assignee:
            Unassigned
            Reporter:
            Nikita Kozelko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: