Skip to content

Commit 07f23b7

Browse files
committed
Update aggregate-histogram.md
1 parent 1ab89c7 commit 07f23b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-histogram.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Generates a data distribution histogram using an "equal height" bucketing strate
1212
```sql
1313
HISTOGRAM(<expr>)
1414

15+
-- The following two forms are equivalent:
1516
HISTOGRAM(<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
101103
SELECT HISTOGRAM(2)(c_int) FROM histagg;
104+
-- Or
105+
SELECT HISTOGRAM(c_int, 2) FROM histagg;
102106

103107
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
104108
│ histogram(2)(c_int) │

0 commit comments

Comments
 (0)