In the flux language help for last-function is this example:
from(bucket:"example-bucket") |> range(start:-1h) |> filter(fn: (r) => r._measurement == "cpu" and r._field == "usage_system" ) |> last()
How this can be modified if I don’t want to use the start time in the range-function? If I remove the range-function from the query it doesn’t work. Using value -inf as a start time seem to work but is there more elegant way to make this work in all the cases? Also if some on could explain why the range-function is needed to make this query work would be great.
I’m working on influxdb 2.0.0 with python influxdb_client 1.12.0.