instream icon indicating copy to clipboard operation
instream copied to clipboard

Enforcing field types on write

Open nilsramsperger opened this issue 6 years ago • 1 comments

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 avatar Jul 22 '19 08:07 nilsramsperger

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.

nilsramsperger avatar Jul 22 '19 10:07 nilsramsperger