docs: missing documentation for RANGE_BOUND aggregate function
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- sql
- Domain
- documentation
Research direction
Read src/query/functions/src/aggregates/aggregate_range_bound.rs and its registration in src/query/functions/src/aggregates/aggregator.rs, then create the page at docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-range-bound.md. Document the parameters, supported arguments, return value, partition-boundary behavior, and the supplied SQL example. Done means the missing function has a complete documentation page in the suggested location.
Written by the indexing model from the issue text.
Description
Missing Documentation: range_bound Aggregate Function
What is missing
The range_bound aggregate function is implemented in the Databend source code but has no documentation page in databend-docs.
Source code location
src/query/functions/src/aggregates/aggregate_range_bound.rs
Registered in the aggregate function factory at:
src/query/functions/src/aggregates/aggregator.rs (line 146)
What it does
range_bound(partition_num[, sample_size])(col) calculates partition boundary values for a given column. It divides the column's data range into partition_num partitions using sampling, and returns an array of boundary values that define the ranges for each partition.
This is useful for data redistribution and range-based partitioning strategies.
Parameters:
partition_num(required) — number of partitions to divide the data intosample_size(optional) — number of samples per block used for boundary estimation
Arguments:
col— the column to compute partition boundaries for (supports numeric and string types)
Returns: An array of (partition_num - 1) boundary values.
Example:
-- For values (0, 1, 3, 6, 8) with partition_num=3, returns boundaries like [1, 6]
SELECT range_bound(3)(col) FROM t;
Suggested doc location
docs/en/sql-reference/20-sql-functions/07-aggregate-functions/aggregate-range-bound.md
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 44
- Avg merge
- 2d 7m
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from databendlabs/databend-docs
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
databendlabs/databend-docs#3504 ·
-
Link Checker Report Openautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
databendlabs/databend-docs#3503 ·
-
auto-fix-done documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
databendlabs/databend-docs#3359 ·
-
auto-fix-done documentation
Difficulty 2/5 1-2 days Newbie friendliness 72/100
databendlabs/databend-docs#3356 ·
-
auto-fix documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
databendlabs/databend-docs#3302 ·
All issues in databendlabs/databend-docs
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100