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

Add --HeaderLine option for mongoexport please.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Tools
    • None

    Description

      I noticed that the mongoimport tool has the option --HeaderLine, but the mongoexport has not.

      In fact, I want to export a collection as CSV format and use it in hive. But the first line are fields, not data. I have to process the big file just for removing the first line.

      I have reviewed the code of mongoexport at github, The master branch still has the problem.

      // Write headers
      err = exportOutput.WriteHeader()
      if err != nil

      { return 0, err }

      i think mongoexport need to add an option like mongoimport's --HeaderLine,

      Attachments

        Activity

          People

            Unassigned Unassigned
            coding Ziqiang Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: