Skip to main content

AggregateConfig

Config for the aggregate op: group-by + allowlisted aggregate functions. An empty group_by aggregates the whole input to a single row. input is a port key.

inputInput (string)required

Input port key

group_bystring[]

Grouping columns (empty = whole-input aggregate)

aggregations object[]required

Aggregations (non-empty)

  • Array [
  • functionFunction (string)required

    Allowlisted aggregate function

    Possible values: [sum, count, avg, min, max]

    column object

    Aggregated column (omit only for count)

    anyOf
    string
    aliasAlias (string)required

    Output column name

  • ]
  • AggregateConfig
    {
    "input": "string",
    "group_by": [
    "string"
    ],
    "aggregations": [
    {
    "function": "sum",
    "column": "string",
    "alias": "string"
    }
    ]
    }