You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
Create a measurement named my_measurement in influxdb with following points:
time data_type value
---------- ---------- -----
15578637... Num 12.5
15578637... Num 12.5
Run the following code:
>>> from influxdb import InfluxDBClient
>>> c = InfluxDBClient(...)
>>> result_set = c.query('select * from my_measurement')
... for _, generator in result_set.items():
... for point in generator:
... print(type(point['value']))
<class 'float'>
<class 'float'>
>>> result_set = c.query('select sum(*) from my_measurement')
... for _, generator in result_set.items():
... for point in generator:
... print(type(point['sum_value']))
<class 'int'>
The casting into 'int' type is incorrect since we are summing floats, result should still be a float.
The text was updated successfully, but these errors were encountered:
Software versions
Influxdb version:
1.7.6
influxdb-python version:
5.2.2
Steps to reproduce:
my_measurement
in influxdb with following points:The casting into 'int' type is incorrect since we are summing floats, result should still be a float.
The text was updated successfully, but these errors were encountered: