|mongoexport truncates string data||saurabh srivastava||3/2/12 8:58 PM|
Exporting a collection using mongoexport truncates the string field and append "..." to it. Is there a way to disable this feature in the export?
|Re: mongoexport truncates string data||Bill Hayward||3/5/12 3:41 AM|
Does this seem to be for fields that contain a certain length, or
above, or is it evident in all cases?
On Mar 2, 11:58 pm, saurabh srivastava <ssrivastava.m...@gmail.com>
|Re: mongoexport truncates string data||saurabh srivastava||3/5/12 8:47 PM|
I realized that this is a known issue. http://www.mongodb.org/display/DOCS/mongoexport first comment on the page talks of this. I wrote my custom exporter which does not truncate. But it would appear that the truncation happens for longer string fields.
|Re: mongoexport truncates string data||Josh Price||6/27/12 7:26 AM|
I'm experiencing the same problem. Strings are being truncated at around 153 characters.
I suspect the problem is occuring here: https://github.com/mongodb/mongo/blob/master/src/mongo/tools/export.cpp#L94
From my understanding of the code, the toString() function defaults to not "full", so the full parameter should be set to true as follows:
return csvEscape(object.toString(false, true), true);
Could someone please confirm this is the case?
|Re: mongoexport truncates string data||Josh Price||7/8/12 5:50 AM|
I've made a patch which fixes this issue and created a github pull request (https://github.com/mongodb/mongo/pull/260).
Personally I'd love to see this in the 2.0.7 release. Is there anything else I can do to make this happen?
Thanks in advance,