Github user mengxr commented on the pull request: https://github.com/apache/spark/pull/9003#issuecomment-150939324 @sethah It seems that `VARIANCE` in HIVE returns the population variance. It is the same in MySQL: https://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_variance. So let's keep the same behavior. Then it is a little awkward that `stddev` is sample variance in our implementation. HIVE doesn't have `stddev`, while MySQL uses population stddev for `stddev`. I think it is more important to be compatible with existing SQL engines. We can address the `stddev` in a follow-up PR.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org