Documentation function is subject to change at any time. By using this function, you accept the risks of experimental functions. introduces an extend mode to the existing group() function.

Function type signature
(<-tables: stream[A], columns: [string], mode: string) => stream[A] where A: Record
For more information, see Function type signatures.



(Required) List of columns to use in the grouping operation. Default is [].


(Required) Grouping mode. extend is the only mode available to

Grouping modes

  • extend: Appends columns defined in the columns parameter to group keys.


Input data. Default is piped-forward data (<-).


Add a column to the group key

import "experimental"

    |> ["region"], mode: "extend")

View example input and ouput

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.