Skip to content
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

int not possible #17

Open
fairtv-git opened this issue Mar 17, 2022 · 2 comments
Open

int not possible #17

fairtv-git opened this issue Mar 17, 2022 · 2 comments

Comments

@fairtv-git
Copy link

When adding a trailing "i" to an integer value I would expect that the influxdb field becomes an integer, but it turns out to be a string instead.
A trailing "i" should mark an integer according to the influxdb docu.

best,
fairtv

@MrSingingClub
Copy link

Same problem here. I had a previos import from mySQL and set the field to integer. In my mwrite payload I set:
fields: {
Wh: 1
}
leads to an error:
"Error: 422 on http://localhost:8086/api/v2/write?org=TS-Home&bucket=alfred&precision=s: {"code":"unprocessable entity","message":"failure writing points to database: partial write: field type conflict: input field "Wh" on measurement "Energieverbrauch" is type float, already exists as type integer dropped=1"}"

I miss the feature to explicitely set the datatype for the field, right?

@fairtv-git
Copy link
Author

It does not work with this adapter, so I gave up and went with float/DOUBLE.
Im not sure if int would save space or gain performance and finally decided not to care about.

best,
fairtv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants