Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1097

mongoimport / export should adhere to CSV spec

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.2
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • Major Change

      Right now we use JSON escaping rules for strings rather than CSV rules.

      Proposal: Strings (and equivalent types like symbol) and numbers get printed directly in CSV format. Other types like objects or arrays get converted to JSON then run through the CSV escaper so they will be valid JSON strings after an import.

      Questions:
      Should Code be a String equivalent or JSON?
      Should OID's be emited as regular hex strings or csv escaped ObjectID("abcde"). The later preserves the distinction between strings and OIDs, but it will make a terrible key if trying to share data with another DB.

            Assignee:
            sridhar Sridhar Nanjundeswaran
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: