I’m trying to set a location in flux query:
option location = loadLocation(name:"America/Denver")
from(bucket: "telegraf/autogen")
|> filter(fn: (r) => r._measurement == "mqtt_consumer")
...
But in result I get error message:
undefinded identifier "loadLocation"
I’m using influxdb v1.7.9 (with flux v0.50.2)
I don’t believe this function has been implemented yet; there is an open issue on GitHub: