experimental.spread() function
The experimental.spread()
function is subject to change at any time.
By using this function, you accept the risks of experimental functions.
The experimental.spread()
function outputs the difference between the minimum
and maximum values in the _value
column for each input table.
experimental.spread()
is an aggregate function.
The function supports uint
, int
, and float
values.
The output value type depends on the input value type:
uint
orint
input values returnint
valuesfloat
input values return float values
import "experimental"
experimental.spread()
Parameters
tables
Input data.
Default is piped-forward data (<-
).
Examples
import "experimental"
from(bucket: "example-bucket")
|> range(start: -5m)
|> filter(fn: (r) => r._measurement == "example-measurement" and r._field == "example-field")
|> experimental.spread()
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.