diff options
author | JihongMa <linlin200605@gmail.com> | 2015-09-12 10:17:15 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-09-12 10:17:15 -0700 |
commit | f4a22808e03fa12bfe1bfc82cf713cfda7e063a9 (patch) | |
tree | 49d22700542e44203793940eb28341e8df573cd5 /R | |
parent | 22730ad54d681ad30e63fe910e8d89360853177d (diff) | |
download | spark-f4a22808e03fa12bfe1bfc82cf713cfda7e063a9.tar.gz spark-f4a22808e03fa12bfe1bfc82cf713cfda7e063a9.tar.bz2 spark-f4a22808e03fa12bfe1bfc82cf713cfda7e063a9.zip |
[SPARK-6548] Adding stddev to DataFrame functions
Adding STDDEV support for DataFrame using 1-pass online /parallel algorithm to compute variance. Please review the code change.
Author: JihongMa <linlin200605@gmail.com>
Author: Jihong MA <linlin200605@gmail.com>
Author: Jihong MA <jihongma@jihongs-mbp.usca.ibm.com>
Author: Jihong MA <jihongma@Jihongs-MacBook-Pro.local>
Closes #6297 from JihongMA/SPARK-SQL.
Diffstat (limited to 'R')
-rw-r--r-- | R/pkg/inst/tests/test_sparkSQL.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/test_sparkSQL.R b/R/pkg/inst/tests/test_sparkSQL.R index 1ccfde5917..98d4402d36 100644 --- a/R/pkg/inst/tests/test_sparkSQL.R +++ b/R/pkg/inst/tests/test_sparkSQL.R @@ -1147,7 +1147,7 @@ test_that("describe() and summarize() on a DataFrame", { stats <- describe(df, "age") expect_equal(collect(stats)[1, "summary"], "count") expect_equal(collect(stats)[2, "age"], "24.5") - expect_equal(collect(stats)[3, "age"], "5.5") + expect_equal(collect(stats)[3, "age"], "7.7781745930520225") stats <- describe(df) expect_equal(collect(stats)[4, "name"], "Andy") expect_equal(collect(stats)[5, "age"], "30") |