influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

influxdb-python 5.3 converts InfluxDB integer types to python float

Open utlco opened this issue 5 years ago • 2 comments

InfluxDB version: v1.7.10 InfluxDB-python version: 5.3.0 Python version: 3.8, 3.7, 2.7 OS: Ubuntu 16.04, 18.04

InfluxDB-python 5.3.0 seems to convert InfluxDB integer data to python float type

InfluxDB-python 5.2.3 correctly output data stored as ints in InfluxDB as python int type.

utlco avatar Jul 10 '20 17:07 utlco

@utlco thanks for the issue! would you be interested in opening a PR?

russorat avatar Jul 17 '20 16:07 russorat

I apologize - I may have jumped the gun. This may not actually be a bug in 5.3 but correct behavior, and it was 5.2.3 that had been deserializing to the wrong type all along. I just looked more carefully at the key types in our db and what we thought was an integer field was actually stored as a float... Anyway, please feel free close this out and I'll do more tests and create a code snippet with data to reproduce and a PR it if in fact it's actually a bug.

utlco avatar Jul 17 '20 21:07 utlco