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

semi-relaxed EJSON in exportJSON

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • Not Needed

      relaxed: true breaks big long numbers. ie. 123456789123456784 becomes 123456789123456780

      relaxed: false is extreme in that it does the equivalent of '

      {"$numberLong":"9223372036854775807"}

      ' for every number including int32 or double.

      compass does "semi-relaxed" which only uses the verbose format if the number would change when output. We should do the same in export.

      I'd actually argue we shouldn't have relaxed: true as an option because it breaks data. Although maybe some users would rather want that than have to deal with $numberLong?

      There might have also been something to do with dates. To be investigated..

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: