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

'Couldn't look up columns' vs '[]' responses to similar queries #963

Closed
denya opened this issue Sep 23, 2014 · 5 comments
Closed

'Couldn't look up columns' vs '[]' responses to similar queries #963

denya opened this issue Sep 23, 2014 · 5 comments
Assignees

Comments

@denya
Copy link

denya commented Sep 23, 2014

Strange difference in responses to similar queries.
I always expect empty list [] in response, not error, it's obvious.

I have data in series only for day 2014-09-23, default shard, 7d.

Query in the past

# curl -G 'http://localhost:8086/db/mydb/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable  WHERE time < '2014-09-16 13:30:52.000'"
Couldn't look up columns

Query about near future (tomorrow)

# curl -G 'http://localhost:8086/db/mydb/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable  WHERE time > '2014-09-24 10:00:00.000'"
[]

Query about the day after tomorrow

# curl -G 'http://localhost:8086/db/mydb/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable  WHERE time > '2014-09-25 10:00:00.000'"
Couldn't look up columns
@brandoncazander
Copy link

+1 I'm having issues with this when graphing multiple series where one or more might not have existed before a certain time.

@mortik
Copy link

mortik commented Oct 1, 2014

+1 i'm having the same issue

@kimor79
Copy link
Contributor

kimor79 commented Oct 2, 2014

Also having similar issues.

influxdb -v
InfluxDB v0.8.3 (git: fbf9a47) (leveldb: 1.15)

curl -X POST 'http://localhost:8086/db?u=root&p=root' -d '{"name": "963"}'

Before sending any data:

curl -G 'http://localhost:8086/db/963/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable WHERE time > now() - 1d";echo
Couldn't look up columns
curl -G 'http://localhost:8086/db/963/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable WHERE time < now() - 1d";echo
Couldn't look up columns

Add a single data point:

curl -X POST 'http://localhost:8086/db/963/series?u=root&p=root' -d '[{"name":"mytable","columns":["value"],"points":[[23]]}]'

Now query:

curl -G 'http://localhost:8086/db/963/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable WHERE time > now() - 1d";echo
[{"name":"mytable","columns":["time","sequence_number","value"],"points":[[1412225752488,8350001,23]]}]
curl -G 'http://localhost:8086/db/963/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable WHERE time < now() - 1d";echo
Couldn't look up columns
curl -G 'http://localhost:8086/db/963/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable WHERE time < now() - 1s";echo
[{"name":"mytable","columns":["time","sequence_number","value"],"points":[[1412225752488,8350001,23]]}]
curl -G 'http://localhost:8086/db/963/series?u=root&p=root' --data-urlencode "q=SELECT time,value FROM mytable WHERE time > now() - 1s";echo
[]

@jvshahid
Copy link
Contributor

jvshahid commented Oct 9, 2014

@toddboom should we include this issue with #1004

@toddboom
Copy link
Contributor

@jvshahid I think this issue is identical to #1004, so I'm closing this out.

@toddboom toddboom added this to the 0.8.4 milestone Oct 12, 2014
@toddboom toddboom self-assigned this Oct 12, 2014
@jvshahid jvshahid removed this from the 0.8.4 milestone Oct 21, 2014
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

6 participants