fix tests

This commit is contained in:
Nikita Mikhaylov 2021-04-27 02:12:15 +03:00
parent 7dc0f27c88
commit 710921dc46
3 changed files with 7 additions and 12 deletions

View File

@ -11,6 +11,11 @@
namespace DB namespace DB
{ {
namespace ErrorCodes
{
extern const int BAD_ARGUMENTS;
}
template <typename F> template <typename F>
static Float64 integrateSimpson(Float64 a, Float64 b, F && func) static Float64 integrateSimpson(Float64 a, Float64 b, F && func)
{ {

View File

@ -1,10 +0,0 @@
0.5060606060606061
0.5083333333333333
0.5119047619047619
0.5178571428571428
0.5285714285714286
0.525
0.55
0.625
0.5
nan

View File

@ -13,10 +13,10 @@ ENGINE = MergeTree
ORDER BY enroll_date ORDER BY enroll_date
SETTINGS index_granularity = 8192; SETTINGS index_granularity = 8192;
INSERT INTO 01802_empsalary VALUES ('sales', 1, 5000, '2006-10-01'), ('develop', 8, 6000, '2006-10-01'), ('personnel', 2, 3900, '2006-12-23'), ('develop', 10, 5200, '2007-08-01'), ('sales', 3, 4800, '2007-08-01'), ('sales', 4, 4800, '2007-08-08'), ('develop', 11, 5200, '2007-08-15'), ('personnel', 5, 3500, '2007-12-10'), ('develop', 7, 4200, '2008-01-01'), ('develop', 9, 4500, '2008-01-01'); INSERT INTO 01802_empsalary VALUES ('sales', 1, 5000, '2006-10-01'), ('develop', 8, 6000, '2006-10-01'), ('personnel', 2, 3900, '2006-12-23'), ('develop', 10, 5200, '2007-08-01'), ('sales', 3, 4800, '2007-08-01'), ('sales', 4, 4801, '2007-08-08'), ('develop', 11, 5200, '2007-08-15'), ('personnel', 5, 3500, '2007-12-10'), ('develop', 7, 4200, '2008-01-01'), ('develop', 9, 4500, '2008-01-01');
SELECT mannWhitneyUTest(salary, salary) OVER (ORDER BY salary ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) AS func FROM 01802_empsalary; -- {serverError 36} SELECT mannWhitneyUTest(salary, salary) OVER (ORDER BY salary ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) AS func FROM 01802_empsalary; -- {serverError 36}
SELECT rankCorr(salary, 0.5) OVER (ORDER BY salary ASC ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) AS func FROM 01802_empsalary; SELECT rankCorr(salary, 0.5) OVER (ORDER BY salary ASC ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) AS func FROM 01802_empsalary; -- {serverError 36}
DROP TABLE IF EXISTS 01802_empsalary; DROP TABLE IF EXISTS 01802_empsalary;