Details
-
New Feature
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
Completed
Description
in mongoimport the "--fields" flag is meaningless unless --type=csv so it should be treated as incompatible and throw an error.
mongoimport --db test -c test --file /data/db/jstests_tool_incompatible_flags_external/a --type=json --fields a,b --host 127.0.0.1:31000
|
m31000| 2014-12-08T14:15:51.002-0500 I NETWORK [initandlisten] connection accepted from 127.0.0.1:52857 #6 (2 connections now open)
|
sh1829| 2014-12-08T14:15:51.003-0500 connected to: 127.0.0.1:31000
|
sh1829| 2014-12-08T14:15:51.004-0500 imported 2 documents
|
Attachments
Issue Links
- is documented by
-
DOCS-4519 Document that certain arguments to mongoimport are only valid with --type=csv
-
- Closed
-