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

mongoimport / export should adhere to CSV spec

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 1.9.2
    • Tools
    • None
    • Major Change

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: