mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update tests
This commit is contained in:
parent
41722a6163
commit
2dc014254e
@ -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());
|
||||
|
@ -1,2 +1,3 @@
|
||||
-0.12709 0.89887
|
||||
-1.27088 0.20377
|
||||
0
|
||||
|
@ -50,4 +50,4 @@ FROM
|
||||
FROM system.numbers
|
||||
LIMIT 1023
|
||||
)
|
||||
); -- { serverError 36 }
|
||||
);
|
||||
|
@ -0,0 +1,2 @@
|
||||
0
|
||||
0
|
@ -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;
|
||||
|
@ -0,0 +1 @@
|
||||
(0,1) (nan,nan)
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user