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

uint64 returns invalid number from Influx v1.8 #41

Open
diamondburned opened this issue Jun 25, 2020 · 1 comment
Open

uint64 returns invalid number from Influx v1.8 #41

diamondburned opened this issue Jun 25, 2020 · 1 comment

Comments

@diamondburned
Copy link

Marshaling a field with type uint64 will trigger an "invalid number" error.

This seems to come from these lines: https://github.com/influxdata/influxdb1-client/blob/master/models/points.go#L2354-L2356

A solution would be to cast this to int64 similarly to the cases underneath it.

Additional information

Shell log:

> INSERT convert,hostname=hanaharu wrote_bytes=2363546 1593054632437
> INSERT convert,hostname=hanaharu wrote_bytes=2363546u 1593054632437
ERR: {"error":"unable to parse 'convert,hostname=hanaharu wrote_bytes=2363546u 1593054632437': invalid number"}

InfluxDB v1.8 Data Types for the line protocol reference, which doesn't show unsigned types.

image

@magicdvd
Copy link

same issue

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