GitHub user mgaido91 opened a pull request: https://github.com/apache/spark/pull/21054
[SPARK-23907][SQL] Add regr_* functions ## What changes were proposed in this pull request? The PR introduces regr_slope, regr_intercept, regr_r2, regr_sxx, regr_syy, regr_sxy, regr_avgx, regr_avgy, regr_count. The implementation of this functions mirrors Hive's one in HIVE-15978. ## How was this patch tested? added UT (values compared with Hive) You can merge this pull request into a Git repository by running: $ git pull https://github.com/mgaido91/spark SPARK-23907 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21054.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21054 ---- commit 90c266e09e276c37126d8428a4d00f4986d240e5 Author: Marco Gaido <marcogaido91@...> Date: 2018-04-12T12:27:39Z [SPARK-23907][SQL] Add regr_* functions ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org