influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 23 forks source link

White space in CSV annotations cause Invalid Argument Errors #475

Open idclark opened 1 year ago

idclark commented 1 year ago

More of a nit than a critical bug. Take an example annotation such as:

#datatype measurement, double, double, double
measurement,x,y,z
demo,-0.514,0.070,1.672

executing influx write ... will return "unsupported data type ' double'"

This can be remediated by simply removing the whitespace from the annotation row: #datatype measurement,double,double,double

I wonder if there's a quick fix in normalizeNumberString