mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix 00606_quantiles_and_nans test
This commit is contained in:
parent
d6fbf23e9d
commit
808068526b
@ -6,11 +6,11 @@ FROM
|
||||
range(2 + number % 10) AS arr, -- minimum two elements, to avoid nan result --
|
||||
arrayMap(x -> x = intDiv(number, 10) ? nan : x, arr) AS arr_with_nan,
|
||||
arrayFilter(x -> x != intDiv(number, 10), arr) AS arr_filtered
|
||||
SELECT
|
||||
number,
|
||||
arrayReduce('quantileExact', arr_with_nan) AS q1,
|
||||
arrayReduce('quantileExact', arr_filtered) AS q2,
|
||||
q1 = q2 AS eq
|
||||
FROM
|
||||
numbers(100)
|
||||
);
|
||||
SELECT
|
||||
number,
|
||||
arrayReduce('quantileExact', arr_with_nan) AS q1,
|
||||
arrayReduce('quantileExact', arr_filtered) AS q2,
|
||||
q1 = q2 AS eq
|
||||
FROM
|
||||
numbers(100)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user