[DOCS-10945] Docs for TOOLS-896: Add --noHeaderLine option for mongoexport please Created: 18/Jul/17  Updated: 29/Oct/23  Resolved: 12/Dec/17

Status: Closed
Project: Documentation
Component/s: tools
Affects Version/s: None
Fix Version/s: mongodb-3.6, 3.4.0

Type: Task Priority: Minor - P4
Reporter: Emily Hall Assignee: Allison Reinheimer Moore
Resolution: Fixed Votes: 0
Labels: community
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents TOOLS-896 Add --noHeaderLine option for mongoex... Closed
Participants:
Days since reply: 6 years, 3 weeks, 6 days ago
Story Points: 0.2

 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,



 Comments   
Comment by Githook User [ 18/Jan/18 ]

Author:

{'name': 'Allison Moore', 'email': 'allison.moore@10gen.com', 'username': 'schmalliso'}

Message: DOCS-10945: adds --noHeaderLine option to mongoexport

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.4
https://github.com/mongodb/docs/commit/200db3f03399bae4f465fbb322ff2161cda9b7a6

Comment by Githook User [ 18/Jan/18 ]

Author:

{'name': 'Allison Moore', 'email': 'allison.moore@10gen.com', 'username': 'schmalliso'}

Message: DOCS-10945: adds --noHeaderLine option to mongoexport

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/3dcbdd59b24d0b776a103a5b5bea843024885ec2

Generated at Thu Feb 08 08:01:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.