Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
0.5
Description
See http://docs.mongodb.org/manual/reference/mongodb-extended-json/#numberlong.
Specifically, we state, "NumberLong is a 64 bit signed integer. You must include quotation marks or it will be interpreted as a floating point number, resulting in a loss of accuracy.".
mongoimport will currently treat both the quoted and unquoted forms the same - they will be imported as expected - and will not cause the unquoted form to be treated as a floating point number.
So the documentation http://docs.mongodb.org/manual/reference/mongodb-extended-json/#input-in-mongo-shell-mode, while true, leads to different behavior in the tools vs the mongo shell.