[SERVER-1097] mongoimport / export should adhere to CSV spec Created: 06/May/10 Updated: 26/Apr/19 Resolved: 27/Jul/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.2 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Mathias Stearn | Assignee: | Sridhar Nanjundeswaran |
| Resolution: | Done | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Major Change | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Description |
|
Right now we use JSON escaping rules for strings rather than CSV rules. Proposal: Strings (and equivalent types like symbol) and numbers get printed directly in CSV format. Other types like objects or arrays get converted to JSON then run through the CSV escaper so they will be valid JSON strings after an import. Questions: |
| Comments |
| Comment by auto [ 26/Jul/11 ] |
|
Author: {u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: Part 2 of |
| Comment by auto [ 26/Jul/11 ] |
|
Author: {u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: Part 1 of |
| Comment by Mathias Stearn [ 22/Jun/11 ] |
|
CSV generated with new and old tools will be mutually incompatible. |
| Comment by Eliot Horowitz (Inactive) [ 10/May/10 ] |
|
Code should be JSON I think We should have an option like --csvcompat which can do some nice things
|