-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get integer data from InfluxDB #153
Comments
@aurrelhebert @majst01 What's 1i? |
Hello @jiafu1115, |
@aurrelhebert Many thanks to you! Can you give the detailed code for how you write and how you query? |
As it's indicated in my first comment, I pushed Integer value using the write protocol of Influx. When requesting Influx directly I could get Integer values but when requesting them with the java client it was only float.
As this issue is quite old, I am not using an integer column anymore in my data base. I can re-setup a local influx, if you want more details about it. |
@aurrelhebert I will test it to avoid your effort to re-setup it. waiting for my feedback. |
Thanks |
I figure out the root cause: in short, it is not bug for influxdb-java. the root cause is in dependency jar: moshi. my test code:
@majst01 So you can close this issue just now! |
Thanks for the investigation. |
Hi, How to fix this problem by myself? |
Hello,
I have a field column that I pushed on influxDB using integer type ( value = 1i ). When I query this specific column I always get a double ( 1.0 ) as a result.
I am using this specific result :
QueryResult queryResult = myInfluxDB.query(myQuery);
The text was updated successfully, but these errors were encountered: