Hi
I am using Influxdb docker container 2.0.9 and it’s running fine. But now I want to update the InfluxDB to 2.4.0 so I can use array functions as the current InfluxDB shows the error
record is missing a label map
I am currently using quay.io/influxdb/influxdb:2.0.9
docker image.
I tried to upgrade to 2.2.0 and 2.4.0 using docker hub images, but InfluxDB could not take the older data. It starts as a fresh instance.
When I use quay.io/influxdb/influxdb:2.2.0
, I can upgrade the instance and it shows older data as well.
Can you please help me this why I am not able to upgrade the instance using the docker hub image but able to upgrade the InfluxDB using quay.io/influxdb/influxdb:2.2.0
?
I am trying to execute the code mentioned in the InfluxDB documentation.
import "array"
a = [
1,
2,
3,
4,
5,
]
b = a |> array.map(fn: (x) => ({_value: x}))
// b returns [{_value: 1}, {_value: 2}, {_value: 3}, {_value: 4}, {_value: 5}]
// Output the array of records as a table
array.from(rows: b)
can you please tell me in which version of the InfluxDB array.map() is defined so I can upgrade to the same instance?