[SERVER-20196] Add --HeaderLine option for mongoexport please. Created: 29/Aug/15  Updated: 29/Aug/15  Resolved: 29/Aug/15

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Ziqiang Zhu Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates TOOLS-896 Add --noHeaderLine option for mongoex... Closed
Participants:

 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,


Generated at Thu Feb 08 03:53:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.