-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Missing WHERE time clause error on continuous queries #2944
Comments
I'm seeing this too. this is the I'm using query on 0.9.0: Seeing this error: |
Thanks, @toomanyjmikes @mahuika88 this is a definite change from the prior behavior and is easy to reproduce. We'll get with the core devs and find out if this was an accidental or intentional change to the CQ syntax and then update the docs appropriately. |
fix #2944: don't require WHERE time on create CQ
I'm creating this continuous query (stolen from your documentation):
CREATE CONTINUOUS QUERY c1h ON cqtest BEGIN SELECT COUNT(name) INTO clicksCount_1h FROM clicks GROUP BY time(1h) END
and am getting a error message (repeated once per second) like:
[continuous_querier] 2015/06/11 13:40:24 error executing query: SELECT count(name) INTO "cqtest"."default".clicksCount_1h FROM "cqtest"."default".clicks GROUP BY time(1h): err = aggregate functions with GROUP BY time require a WHERE time clause
I've reproduced this using 0.9.0rc33 on OS X and 0.9.0-1 final on Centos.
Program that creates db, cq and populates with a little data at https://gist.github.com/toomanyjmikes/a92a1521d1a95ee9c7e3#file-cq_where_time_error-py
The text was updated successfully, but these errors were encountered: