experimental.max() function
The experimental.max()
function is subject to change at any time.
By using this function, you accept the risks of experimental functions.
The experimental.max()
function returns the record with the highest value in the
_value
column for each input table.
Function type: Selector
import "experimental"
experimental.max()
Empty tables
experimental.max()
drops empty tables.
Parameters
tables
Input data. Default is pipe-forwarded data.
Data type: String
Examples
import "experimental"
data
|> experimental.max()
Input data
_time | _value |
---|---|
2021-01-01T00:00:00Z | 1.2 |
2021-01-01T00:01:00Z | 0.6 |
2021-01-01T00:02:00Z | 2.3 |
2021-01-01T00:03:00Z | 0.9 |
Output data
_time | _value |
---|---|
2021-01-01T00:02:00Z | 2.3 |
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.