WarUI

Group and aggregate nodes

GRID-A05-F06P1baselinePlanned

Adds group-by keys and aggregate specifications (count, sum, avg, min, max, countDistinct) to the AST. Grouped views can then be pushed to the backend instead of being computed in the browser.

Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An orders grid with a group panel and no grouping.

Expected behavior

The grid shows group rows with aggregate cells. The AST lists group keys in order, each with an optional bucket, followed by aggregate entries that have unique aliases.

Planned API surface

GroupNodeAggregateNodegroupByaggregatesaggFnaggAliasdateBucket

Acceptance criteria

  • Aggregate functions are constrained by field type (for example, no sum on text) (pending)
  • Aliases are unique and match a safe identifier pattern (pending)
  • Date bucketing is permitted only on date or datetime fields (pending)
  • Filters apply before grouping, and the AST documents this ordering (pending)