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

Column indexes/names getting off somehow #30

Closed
pauldix opened this issue Nov 10, 2013 · 0 comments
Closed

Column indexes/names getting off somehow #30

pauldix opened this issue Nov 10, 2013 · 0 comments

Comments

@pauldix
Copy link
Member

pauldix commented Nov 10, 2013

To reproduce, say you have a database foobar:

curl -X POST 'http://localhost:8086/db?u=root&p=root' -d '{"name": "foobar"}'
curl -vv -X POST 'http://localhost:8086/db/foobar/users?u=root&p=root' -d '{"username":"paul", "password":"password"}'

And write data into a series:

curl -X POST 'http://localhost:8086/db/foobar/series?u=paul&p=password&time_precision=s' -d '[{"name": "asdf", "columns": ["time", "val1", "val2"], "points":[[1384118307, "v1", 2]]}]'

And now pull it out:

curl 'http://localhost:8086/db/foobar/series?u=paul&p=password&q=select+%2A+from+asdf+where+time+%3E+now%28%29+-+20d%3B'

And the output is off:

{"name":"asdf","columns":["time","sequence_number","val1","val2"],"points":[[1384118307000,2,2,"v1"]]}]

Notice that val1 and val2 are mixed up.

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