diff --git a/scripts-enabled/CDB_Stats.sql b/scripts-enabled/CDB_Stats.sql index 0d7fa50..37abd7b 120000 --- a/scripts-enabled/CDB_Stats.sql +++ b/scripts-enabled/CDB_Stats.sql @@ -1 +1 @@ -scripts-available/CDB_Stats.sql \ No newline at end of file +../scripts-available/CDB_Stats.sql \ No newline at end of file diff --git a/test/CDB_StatsTest.sql b/test/CDB_StatsTest.sql index 06ef647..571d323 100644 --- a/test/CDB_StatsTest.sql +++ b/test/CDB_StatsTest.sql @@ -1,5 +1,6 @@ -- continuous uniform distribution has kurtosis = -6/5, skewness = 0.0 -- http://mathworld.wolfram.com/UniformDistribution.html +set client_min_messages to ERROR; With dist As ( SELECT random()::numeric As val @@ -10,4 +11,6 @@ SELECT -- does random dist values match within 1% of known values abs(CDB_Kurtosis(array_agg(val)) + 1.20) < 1e-2 As kurtosis, abs(CDB_Skewness(array_agg(val)) - 0) < 1e-2 As skewness -FROM dist \ No newline at end of file +FROM dist; + +set client_min_messages to NOTICE; diff --git a/test/CDB_StatsTest_expect b/test/CDB_StatsTest_expect index c1a8116..fdc125d 100644 --- a/test/CDB_StatsTest_expect +++ b/test/CDB_StatsTest_expect @@ -1 +1,3 @@ -true|true +SET +t|t +SET