diff options
Diffstat (limited to 'sql/hive/src/test/resources/golden/udaf_corr-4-8771b2d83d14b3b641e8a77fcdc5081a')
-rw-r--r-- | sql/hive/src/test/resources/golden/udaf_corr-4-8771b2d83d14b3b641e8a77fcdc5081a | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/hive/src/test/resources/golden/udaf_corr-4-8771b2d83d14b3b641e8a77fcdc5081a b/sql/hive/src/test/resources/golden/udaf_corr-4-8771b2d83d14b3b641e8a77fcdc5081a new file mode 100644 index 0000000000..fcb49ae69f --- /dev/null +++ b/sql/hive/src/test/resources/golden/udaf_corr-4-8771b2d83d14b3b641e8a77fcdc5081a @@ -0,0 +1,9 @@ +corr(x,y) - Returns the Pearson coefficient of correlation +between a set of number pairs +The function takes as arguments any pair of numeric types and returns a double. +Any pair with a NULL is ignored. If the function is applied to an empty set or +a singleton set, NULL will be returned. Otherwise, it computes the following: + COVAR_POP(x,y)/(STDDEV_POP(x)*STDDEV_POP(y)) +where neither x nor y is null, +COVAR_POP is the population covariance, +and STDDEV_POP is the population standard deviation.
\ No newline at end of file |