[SERVER-9015] Mongoimport for TSVs does not understand types correctly Created: 18/Mar/13 Updated: 10/Dec/14 Resolved: 18/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andrew Emil (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Mongoimport has flaws in how it handles TSV files, particularly regarding the types of data that are imported. A simple example to demonstrate: 1) Start with the following sample file represented the exported document { a : true }$cat test.tsv 2) Import this file 3) Look at the document This document has the value "true" the string, rather than true the boolean. A issues exists for importing subdocuments where what is imported is a string representation of the subdocument rather than an actual subdocument. Beyond this, if a string is stored like "string" (where the value is what is inside the quotes), the imported value will be "\"string\"". |