Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4694

Export NumberLong Doesn't Work Properly

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

      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@mongodb.com Anna Henningsen
            Reporter:
            yaoxing.zhang@mongodb.com Yaoxing Zhang
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: