-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: Legacy C++ Implementation
-
Component/s: mongoexport, mongoimport
-
None
-
Iteration 0, Iteration 3.1.0, Kernel Tools Iteration 3.1.1, Kernel Tools Iteration 3.1.2, Kernel Tools Iteration 3
it's kind of bad that you cannot do mongoexport / mongoimport and get things identical
foo:PRIMARY> db.accounts.insert(
{a: Timestamp()})
foo:PRIMARY> db.accounts.find()
{ "_id" : ObjectId("4d825eeef7e844daacb16e96"), "a" :
}
here I'm assuming the timestamp has type "timestamp" in the bson.
$ ./mongoexport -d testdb -c accounts | ./mongoimport -d testdb -c accounts2
foo:PRIMARY> db.accounts2.find()
{ "_id" : ObjectId("4d825eeef7e844daacb16e96"), "a" :
}
here I'm assuming the timestamp is just an object in the bson..
For all native bson types, we should make sure they can be exported/imported in JSON reliably.
It seems issue exists with at least: timestamp, date, code, ..
- is duplicated by
-
TOOLS-703 MongoExport: exporting documents with double datatypes
- Closed