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

negative timestamps not valid for line protocol #3367

Closed
beckettsean opened this issue Jul 17, 2015 · 2 comments
Closed

negative timestamps not valid for line protocol #3367

beckettsean opened this issue Jul 17, 2015 · 2 comments
Assignees

Comments

@beckettsean
Copy link
Contributor

CLI, showing max positive int64 is valid, but the smallest negative integer fails.

> insert timestamps value=1 
> insert timestamps value=1 9023372036854775808
> insert timestamps value=1 -1
ERR: unable to parse ' timestamps value=1 -1': bad timestamp

> 

curl showing same issue (not sure why curl tops out at max int64 -1):

$ curl -XPOST 'http://localhost:8086/write?db=mydb' -d 'timestamps value=1 9223372036854775808'
unable to parse 'timestamps value=1 9223372036854775808': strconv.ParseInt: parsing "9223372036854775808": value out of range
$ curl -XPOST 'http://localhost:8086/write?db=mydb' -d 'timestamps value=1 9223372036854775807'
$ curl -XPOST 'http://localhost:8086/write?db=mydb' -d 'timestamps value=1 -1'
unable to parse 'timestamps value=1 -1': bad timestamp
@beckettsean
Copy link
Contributor Author

@jwilder we used to support negative timestamps. Was there an explicit decision not to with the line protocol, or is there a parser bug that's not properly accepting - as a valid leading character for timestamps?

@beckettsean beckettsean added this to the 0.9.3 milestone Jul 17, 2015
@jwilder
Copy link
Contributor

jwilder commented Jul 17, 2015

Was not aware of that requirement so just a bug.

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

No branches or pull requests

3 participants