From 07f23b746e8734a13792c778a414217393dbea43 Mon Sep 17 00:00:00 2001 From: soyeric128 Date: Mon, 20 Jan 2025 19:44:29 -0500 Subject: [PATCH] Update aggregate-histogram.md --- .../07-aggregate-functions/aggregate-histogram.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-histogram.md b/docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-histogram.md index de1785c4f7..8924247e9c 100644 --- a/docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-histogram.md +++ b/docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-histogram.md @@ -12,7 +12,9 @@ Generates a data distribution histogram using an "equal height" bucketing strate ```sql HISTOGRAM() +-- The following two forms are equivalent: HISTOGRAM()() +HISTOGRAM( [, ]) ``` | Parameter | Description | @@ -99,6 +101,8 @@ This example shows how `HISTOGRAM(2)` groups c_int values into two buckets: ```sql SELECT HISTOGRAM(2)(c_int) FROM histagg; +-- Or +SELECT HISTOGRAM(c_int, 2) FROM histagg; ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ histogram(2)(c_int) │