Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-896

Add --noHeaderLine option for mongoexport please

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.1
    • Component/s: mongoexport
    • Labels:
    • Environment:
      Mongodb V3.0
    • Backport Requested:
      v3.0
    • Documentation Changes:
      Needed
    • Sprint:
      Server Tools D (12/11/15), Server Tools E (01/08/16), Server Tools F (01/29/16)

      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

          Issue Links

            Activity

              People

              • Assignee:
                gabriel.russell Gabriel Russell
                Reporter:
                coding Ziqiang Zhu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: