[SERVER-2971] mongoimport + oversize numbers => garbage field Created: 20/Apr/11 Updated: 12/Jul/16 Resolved: 04/Oct/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 1.8.1 |
| Fix Version/s: | 2.0.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Gaetan Voyer-Perrault | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Attachments: |
|
| Operating System: | Windows |
| Participants: |
| Description |
|
Summary
Reproduce From the attached file, the last document looks like this: In the file
Problem |
| Comments |
| Comment by Frédéric Cons [ 28/Sep/11 ] |
|
Hi |
| Comment by Spencer Brody (Inactive) [ 27/Sep/11 ] |
|
Can you please try this again using mongoimport from 2.0? The CSV handling functionality of mongoimport was completely rewritten in 2.0 and it is likely this bug was fixed in that process. It is fine to run mongoimport from 2.0 against a 1.8 server. |
| Comment by Frédéric Cons [ 21/Apr/11 ] |
|
Please note that I also had this problem when using numbers with 15 digits 52351,"GARAGE DE LA TUILERIE","18 RTE DE BEAUVAIS 95810 EPIAIS RHUS","49.121577962239","2.0502000172932" gave me : > db.dealers.find() { "_id" : 52351, "name" : "GARAGE DE LA TUILERIE", "address" : "18 RTE DE BEAUVAIS 95810 EPIAIS RHUS", "lat" : 49.121577962239, "long" : 2.0502000172932 } { "_id" : 49735, "name" : "SNAT", "address" : "95 R DU TILLEUL 59200 TOURCOING", "lat" : 50.719580078125, "long" : 3.1692100524902, "field5" : "39\"", "field6" : 2.0502000172932 } |