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

Enforcing field types on write #50

Open
nilsramsperger opened this issue Jul 22, 2019 · 1 comment
Open

Enforcing field types on write #50

nilsramsperger opened this issue Jul 22, 2019 · 1 comment

Comments

@nilsramsperger
Copy link

Hello,

is there a way to enforce/specify field types on write commands?

Currently I'm trying to write integer values to fields. I get partial drops while writing because of values that mix up integer and float. When I look at the measurement keys afterwards, it says there would be integer and float values, despite the fact that a select only shows integers.

InfluxDB's docs say that an integer value can be suffixed with "i" to force Influx to interpret it as integer. I would like to do that with Instream.

Greets
Nils

@nilsramsperger
Copy link
Author

After digging a bit into Instream's code, I found out that integers are automatically suffixed with "i" before they are send. So Instream should behave as I want, if I use it right.

I guess, I need to have a deeper dive into my usecase and figure out what actually happens.

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

1 participant