-
Notifications
You must be signed in to change notification settings - Fork 240
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
Reduce of empty array with no initial value #108
Comments
Hi Luke, Everyone: maybe it's time to integrate some Docker magic, to be able to test on several different MongoDB versions... Regards, |
Tomáš, Now that we've got this Docker stuff mostly figured out, are you able to reproduce Luke's issue or not so much? James |
Hi James, Regards, |
Luke, Please pardon—we don't seem able to reproduce. Are you still experience this issue? Any insight it weirdness of this collection which might cause an usual error? Or if not, that's fine, too; just trying to sleuth it out (ha). James |
Hi Luke, It seems, that variety tries to print into the ascii table a row, which does not contain any values. But where is it come from... I could probably fix the consequence. But without knowing the original cause, it will bite us somewhere else next time. Thanks, |
@todvora @JamesCropcho I'll try get a sample of data to you over the weekend. I'm gonna run it again myself and see how it goes. It is possible that some of the new data cased the issue. |
Luke and Tomáš, I'm going to close this ticket/issue for now. By all means please feel free to re-open when we get more information or insights. Hope you two are having a nice week. —James |
Repro'ed. This happens when the query causes the db to not return any values. When the resulting array is empty |
Thank you for letting us know, David ( @hdavidzhu ). Wow, this sounds like it's likely quite a commonly encountered bug, and it's been around for two years! (Hence, our appreciation, once again.) I have re-opened the issue for consideration. @todvora It's surprising that the test suite wouldn't catch this, at least if indeed happens any time the initial query to the target collection doesn't return values. What do you think? |
Running the following on MongoDB 3.0.8 worked (I think I may have also been using an older version of the shell command):
mongo --host localhost --eval "var collection = 'events', query = {'title': 'event title'};" database variety.js
The collection I'm querying has over 15 million documents in it. At the time that it worked it had between 12 and 13 million documents. If I run the query on the database and get a count there are ~350 documents.
We have recently upgraded to MongoDB 3.0.9 and running the same command gives the below output:
If there is anything else I can provide let me know.
The text was updated successfully, but these errors were encountered: