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

can't drop continuous query #2230

Closed
neonstalwart opened this issue Apr 9, 2015 · 1 comment
Closed

can't drop continuous query #2230

neonstalwart opened this issue Apr 9, 2015 · 1 comment

Comments

@neonstalwart
Copy link
Contributor

this is with 0.9.0-rc22

# create a db
curl -G http://127.0.0.1:8086/query --data-urlencode "q=create database mydb"
{"results":[{}]}

# create a continuous query
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=create continuous query test on mydb BEGIN select count(*) as count into \"10m.test\" from test group by time(10m) END"
{"results":[{}]}

# show the continuous queries
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=show continuous queries"
{"results":[{"series":[{"name":"mydb","columns":["name","query"],"values":[["test","CREATE CONTINUOUS QUERY test ON mydb BEGIN SELECT count(*) AS count INTO \"mydb\".\"default\".\"10m.test\" FROM \"mydb\".\"default\".test GROUP BY time(10m) END"]]}]}]}

# drop the continuous query - this result doesn't look right
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=drop continuous query test on mydb"
{}

# show the continuous queries - should be empty
curl -G http://127.0.0.1:8086/query --data-urlencode "db=mydb" --data-urlencode "q=show continuous queries"
{"results":[{"series":[{"name":"mydb","columns":["name","query"],"values":[["test","CREATE CONTINUOUS QUERY test ON mydb BEGIN SELECT count(*) AS count INTO \"mydb\".\"default\".\"10m.test\" FROM \"mydb\".\"default\".test GROUP BY time(10m) END"]]}]}]}
@neonstalwart
Copy link
Contributor Author

duplicate of #2141

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

1 participant