experimental.group() function
The experimental.group()
function is subject to change at any time.
By using this function, you accept the risks of experimental functions.
The experimental.group()
function introduces an extend
mode to the existing
group()
function.
This function will be removed once the proposed extend
mode is sufficiently vetted.
import "experimental"
experimental.group(columns: ["host", "_measurement"], mode:"extend")
Parameters
columns
List of columns to use in the grouping operation.
Defaults to []
.
mode
The mode used to group columns.
extend
is the only mode available to experimental.group()
.
extend
Appends columns defined in the columns
parameter to all existing
group keys.
tables
Input data.
Default is piped-forward data (<-
).
Examples
Include the value column in each groups' group key
import "experimental"
from(bucket: "example-bucket")
|> range(start: -1m)
|> experimental.group(columns: ["_value"], mode: "extend")
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.