InfluxDB upgradation from 2.0.9 to InfluxDB 2.4

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 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, 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

I am trying to execute the code mentioned in the InfluxDB documentation.

import "array"

a = [
b = a |> (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 is defined so I can upgrade to the same instance?

@Anaisdg could you please help me with this?

Hello @Ravikant_Gautam,
Why are you not able to upgrade to 2.4?
Have you tried following:

I am currently using InfluxDB 2.0.9. So, still I need to follow Upgrade from InfluxDB 1.x to 2.4 with Docker | InfluxDB OSS 2.4 Documentation process as well.

@Anaisdg can you please help with it?