Export NumberLong Doesn't Work Properly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.31.2
    • Affects Version/s: 1.26.0
    • Component/s: Import/Export
    • None
    • Iteration Yonkers
    • Not Needed
    • None

      Problem Description

      Community user reports that when we export document that contains NumberLong fields, in the exported JSON file the type is wrong.

      Steps to Reproduce

      • Create a new collection export_test
      • Insert a document {_id: ObjectId("6045a072e208592596c96009"), long: NumberLong("1234567890000")}
      • Export export_test to JSON using the Compass export function

      Expected Results

      [{
      "_id":

      { "$oid": "6045a072e208592596c96009" }

      ,
      "long":

      { "$numberlong": "12345678900000" }

      }]

      Actual Results

      [{
      "_id":

      { "$oid": "6045a072e208592596c96009" }

      ,
      "long": 12345678900000
      }]

      Additional Notes

            Assignee:
            Anna Henningsen
            Reporter:
            Yaoxing Zhang
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: