File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
docs/en/sql-reference/20-sql-functions/07-aggregate-functions Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ Generates a data distribution histogram using an "equal height" bucketing strate
12
12
``` sql
13
13
HISTOGRAM(< expr> )
14
14
15
+ -- The following two forms are equivalent:
15
16
HISTOGRAM(< max_num_buckets> )(< expr> )
17
+ HISTOGRAM(< expr> [, < max_num_buckets> ])
16
18
```
17
19
18
20
| Parameter | Description |
@@ -99,6 +101,8 @@ This example shows how `HISTOGRAM(2)` groups c_int values into two buckets:
99
101
100
102
``` sql
101
103
SELECT HISTOGRAM(2 )(c_int) FROM histagg;
104
+ -- Or
105
+ SELECT HISTOGRAM(c_int, 2 ) FROM histagg;
102
106
103
107
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
104
108
│ histogram(2 )(c_int) │
You can’t perform that action at this time.
0 commit comments