Skip to content

Conversation

base698
Copy link

@base698 base698 commented Apr 4, 2013

Trying to enable $stdev for aggregate. Seems to work, but needs tests and some clean up.

https://jira.mongodb.org/browse/SERVER-5044

@kangas
Copy link
Contributor

kangas commented May 8, 2013

Hi base698 (Justin?),

Before we can accept any pull request, we have two main requirements. (1) reference a SERVER ticket, (2) make sure you've signed the contributor agreement. This is explained in CONTRIBUTING.rst in the root of our source tree.

I see you already have the SERVER ticket taken care of, so that's great! Now we need the contributor agreement. The form is at http://www.10gen.com/legal/contributor-agreement

Even though it's not "required" in the form, please make sure you specify your GitHub username. This will help us verify compliance quickly in the future.

Thank you for contributing to MongoDB, and I apologize for the delay in getting back to you.

@base698
Copy link
Author

base698 commented May 8, 2013

I did the agreement. Thanks!

@kangas
Copy link
Contributor

kangas commented May 9, 2013

Thanks Justin! I see the updated contributors agreement. Looks good now.

@kangas
Copy link
Contributor

kangas commented May 31, 2013

Hi Justin, sorry for the delay. Looking at your diff I see some a style issue:

  • Use spaces, no literal tabs. (accumulator_sum.cpp, accumulator_stdev.cpp have this problem.)

Please fix these per our style guide (http://www.mongodb.org/about/contributors/kernel-code-style/). You can have Git highlight leading tabs by setting

git config --local core.whitespace tab-in-indent

Mathias (our aggregation lead) also had some comments about the code itself. Did you notice the Gist link in SERVER-5044 to an algorithm for computing avg, variance, stddev in one pass? I think this is the approach he is looking for.

https://gist.github.com/RedBeard0531/1886960

@base698
Copy link
Author

base698 commented May 31, 2013

I also wanted to do it in one pass, and think I asked about that in the JIRA issue. Missed that link. I can change it to no literal tabs easy. How many is default for you guys? Will look at implementing it as the gist.

@kangas
Copy link
Contributor

kangas commented May 31, 2013

Our kernel code style guide specifies 4 spaces per indentation. http://www.mongodb.org/about/contributors/kernel-code-style/#basics

@kangas
Copy link
Contributor

kangas commented Jun 6, 2013

Hey Justin, I see that you pushed some whitespace fixes about a week ago, but I'm not sure what these other merge commits are. Maybe you wanted to rebase instead against master?

Also, are you still thinking of reimplementing this with the other algorithm per the Gist?

@kangas
Copy link
Contributor

kangas commented Jul 8, 2013

Hi Justin,

It's been a month since we last discussed this issue. I am going to close this pull request due to inactivity, but if you want to reimplement per our discussion above, just reopen the pull request and submit a new implementation. Or open a new pull request, whichever is easier.

SERVER-5044 will stay open until we get an implementation of $stdDev and friends.

@kangas kangas closed this Jul 8, 2013
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
Improve the error message if no columns are specified to a projection.
closes mongodb#409.
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
This is how we try to indicate in example code that error handling is needed without cluttering up the code too much.
refs mongodb#409
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
…eviously, column groups added after all columns appeared in a column group would not be populated correctly.

refs mongodb#409
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
…e of population data, canonical in database textbooks.

refs mongodb#409
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
* allow empty column lists in projection cursors;
* do another pass over the schema documentation and example code;
* add docs for the variable-length argument lists for WT_CURSOR:{g,s}et_{key,value}.
closes mongodb#409
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
We still rely on C language type promotion for values passed in, including
careful handling of long vs int values.
refs mongodb#409
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
jiongle1 pushed a commit to scantist-ossops-m2/mongo that referenced this pull request Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants