Skip to content

Add array_agg() aggregate function documentation#376

Open
javier wants to merge 4 commits intomainfrom
jv/array_agg
Open

Add array_agg() aggregate function documentation#376
javier wants to merge 4 commits intomainfrom
jv/array_agg

Conversation

@javier
Copy link
Contributor

@javier javier commented Feb 24, 2026

Summary

  • Add array_agg() documentation to the aggregation functions reference page, covering both scalar and array input forms
  • Document parameters, return value semantics per form, SAMPLE BY support with FILL options, and NULL handling
  • Add examples: basic collection, time-bucketed arrays, parallel execution, array concatenation, and composition with array functions
  • Add cross-reference from the array functions page back to array_agg()

Ref: questdb/questdb#6812

Ref: questdb/questdb#6812

- Add explicit syntax signatures for both scalar and array forms
- Fix return value semantics: scalar form always produces an array when
  rows exist, array form returns NULL when all inputs are NULL/empty
- Rename "Return type" to "Return value" to match page conventions
- Split NULL handling into its own section with per-form behavior
- Add result table with real output to first example
- Remove internal NaN implementation details from user-facing docs
- Add backticks to SAMPLE BY references
@github-actions
Copy link

🚀 Build success!

Latest successful preview: https://preview-376--questdb-documentation.netlify.app/docs/

Commit SHA: 11e987a

📦 Build generates a preview & updates link on each commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant