I have a column storing GPS coordinates in the following format [40.79087194723902, -65.29992030480717]. I would like to remove the []'s and split the values into a separate lat/long column to allow grafana to properly display them. I have been attempting to use the strings and the map function but I am not able to get the desired results. I don’t see documentation on the return function and i’m not able to figure out how to convert it to the documented with functionality. Any assistance is appreciated. Below is the flux code I am attempting:
All the changes that you do inside the map are not applied to the current record, if you want to “chain” the changes you must do it in different map functions.
You could also build a custom function and do it all at once, but unless you have a LOT of data that isn’t more performant than the 4 maps followed one by the other.