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
1212``` sql
1313HISTOGRAM(< expr> )
1414
15+ -- The following two forms are equivalent:
1516HISTOGRAM(< max_num_buckets> )(< expr> )
17+ HISTOGRAM(< expr> [, < max_num_buckets> ])
1618```
1719
1820| Parameter | Description |
@@ -99,6 +101,8 @@ This example shows how `HISTOGRAM(2)` groups c_int values into two buckets:
99101
100102``` sql
101103SELECT HISTOGRAM(2 )(c_int) FROM histagg;
104+ -- Or
105+ SELECT HISTOGRAM(c_int, 2 ) FROM histagg;
102106
103107┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
104108│ histogram(2 )(c_int) │
You can’t perform that action at this time.
0 commit comments