Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10945

Docs for TOOLS-896: Add --noHeaderLine option for mongoexport please

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: mongodb-3.6, 3.4.0
    • Component/s: tools
    • Labels:
    • Last comment by Customer:
      true
    • Story Points:
      0.2
    • Sprint:
      KANBAN BUCKET

      Description

      Documentation Request Summary:

      No documentation summary in engineering ticket

      Engineering Ticket 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:
              allison.moore Allison Reinheimer Moore
              Reporter:
              emily.hall Emily Hall
              Participants:
              Last commenter:
              Githook User Githook User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                3 years, 39 weeks, 6 days ago
                Date of 1st Reply: