Update tests

This commit is contained in:
Alexey Milovidov 2023-02-08 03:37:46 +01:00
parent 41722a6163
commit 2dc014254e
7 changed files with 9 additions and 7 deletions

View File

@ -82,7 +82,7 @@ public:
auto & column_stat = assert_cast<ColumnVector<Float64> &>(column_tuple.getColumn(0));
auto & column_value = assert_cast<ColumnVector<Float64> &>(column_tuple.getColumn(1));
if (unlikely(std::isinf(f_stat) || isNaN(f_stat) || f_stat < 0))
if (unlikely(!std::isfinite(f_stat) || f_stat < 0))
{
column_stat.getData().push_back(std::numeric_limits<Float64>::quiet_NaN());
column_value.getData().push_back(std::numeric_limits<Float64>::quiet_NaN());

View File

@ -1,2 +1,3 @@
-0.12709 0.89887
-1.27088 0.20377
0

View File

@ -50,4 +50,4 @@ FROM
FROM system.numbers
LIMIT 1023
)
); -- { serverError 36 }
);

View File

@ -1,8 +1,7 @@
DROP TABLE IF EXISTS welch_ttest__fuzz_7;
CREATE TABLE welch_ttest__fuzz_7 (left UInt128, right UInt128) ENGINE = Memory;
INSERT INTO welch_ttest__fuzz_7 VALUES (0.010268, 0), (0.000167, 0), (0.000167, 0), (0.159258, 1), (0.136278, 1), (0.122389, 1);
SELECT roundBankers(welchTTest(left, right).2, 6) from welch_ttest__fuzz_7; -- { serverError 36 }
SELECT roundBankers(studentTTest(left, right).2, 6) from welch_ttest__fuzz_7; -- { serverError 36 }
SELECT roundBankers(welchTTest(left, right).2, 6) from welch_ttest__fuzz_7;
SELECT roundBankers(studentTTest(left, right).2, 6) from welch_ttest__fuzz_7;

View File

@ -0,0 +1 @@
(0,1) (nan,nan)

View File

@ -1,4 +1,3 @@
SELECT analysisOfVariance(number, number % 2) FROM numbers(10) FORMAT Null;
SELECT analysisOfVariance(number :: Decimal32(5), number % 2) FROM numbers(10) FORMAT Null;
SELECT analysisOfVariance(number :: Decimal256(5), number % 2) FROM numbers(10) FORMAT Null;
@ -7,4 +6,4 @@ SELECT analysisOfVariance(1.11, -20); -- { serverError BAD_ARGUMENTS }
SELECT analysisOfVariance(1.11, 20 :: UInt128); -- { serverError BAD_ARGUMENTS }
SELECT analysisOfVariance(1.11, 9000000000000000); -- { serverError BAD_ARGUMENTS }
SELECT analysisOfVariance(number, number % 2), analysisOfVariance(100000000000000000000., number % 65535) FROM numbers(1048575); -- { serverError BAD_ARGUMENTS }
SELECT analysisOfVariance(number, number % 2), analysisOfVariance(100000000000000000000., number % 65535) FROM numbers(1048575);