-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing milliseconds in timestamp while querying with mongo.find.all #89
Comments
Please, provide fully reproducible example, so I will be able to investigate into this. |
Hi,
This is the outcome in mongoDB shell:
The _id is a date format. From my R script buf <- mongo.bson.buffer.create()
mongo.bson.buffer.append(buf, "tipo", "pdf")
query <- mongo.bson.from.buffer(buf)
inputTest <- mongo.find.all(mongo,DBNS,query) inputTest is a list.
The milliseconds are missing. I hope I have provided the evidence to start an investigation. |
Hi,
|
Hi, format(inputTest[[1]]$"_id", "%Y-%m-%d %H:%M:%OS3") the outcome is:
|
When I switch from working with mongo cursors (mongo.find) to fetching data frames (mongo.find.all) I get a data frame with
POSIXct
timestamps and those timestamps don't have milliseconds.E.x:
Expected behaviour: Should receive the same result with milliseconds in both cases -
1429294389.1229999
The text was updated successfully, but these errors were encountered: