-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: mongoimport
-
0.5
-
v3.6, v3.4
mongoimport --help does not report that decimal is a valid type
--columnsHaveTypes indicated that the field list (from --fields, --fieldsFile, or --headerline) specifies types; They must be in the form of '<colName>.<type>(<arg>)'. The type can be one of: auto, binary, bool, date, date_go, date_ms, date_oracle, double, int32, int64, string. For each of the date types, the argument is a datetime layout string. For the binary type, the argument can be one of: base32, base64, hex. All other types take an empty argument. Only valid for CSV and TSV imports. e.g. zipcode.string(), thumbnail.binary(base64)
However, it does work if you use something like *UnitPrice.decimal()*
And the doc rightfully lists the support for 'decimal':
https://docs.mongodb.com/manual/reference/program/mongoimport/
- is duplicated by
-
TOOLS-1562 help text doesn't indicate support for CSV/TSV decimal type
- Closed