You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| level(s)| level(s) of quantile. Each level is constant floating-point number from 0 to 1. We recommend using a level value in the range of [0.01, 0.99]|
26
+
| ----------- | ----------- |
27
+
| expression | Any numerical expression |
26
28
27
29
## Return Type
28
30
29
-
the type of the value.
31
+
Float64 or float64 array based on level number.
30
32
31
33
## Examples
32
34
33
35
:::tip
34
-
QUANTILE(0.6)(N) – A table for test with the single `number` column (UInt64) that contains integers from 0 to N-1.
36
+
QUANTILE_CONT(0.6)(N) – A table for test with the single `number` column (UInt64) that contains integers from 0 to N-1.
35
37
:::
36
38
37
39
```sql
38
-
SELECT QUANTILE(0.6)(number) FROM numbers(10000);
39
-
+-----------------------+
40
-
| quantile(0.6)(number) |
41
-
+-----------------------+
42
-
| 5999 |
43
-
+-----------------------+
40
+
SELECT QUANTILE_CONT(0.6)(number) FROM numbers(10000);
41
+
+----------------------------+
42
+
| quantile_cont(0.6)(number) |
43
+
+----------------------------+
44
+
| 5999.4 |
45
+
+----------------------------+
46
+
```
47
+
48
+
```sql
49
+
SELECT QUANTILE_CONT(0, 0.5, 0.6, 1)(number) FROM numbers_mt(10000);
0 commit comments