-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Continuous queries syntax change #526
Comments
I think the delete queries would be better served through #479 (other scheduling options for continuous queries). Those same scheduling options could be applied to deletes. I guess the continuously keyword would be one of the scheduling options. Not sure about this one. Wonder what other people think about it. |
I like the idea. Don't think delete queries belong here. Initially to make this backward compatible we can provide a config option for comparability mode. Also, query identifier should be optional with a default of |
Oops, referenced the wrong issue |
Closed it by accident a second time? |
I suggest a change to how continuous queries are created, and possibly managed.
The changes are as follows:
CONTINUOUSLY
param, instead of by theINTO
paramINTO
query now simply redirects output to a second series (similar to MongoDB's $outCONTINUOUSLY
param can work onDELETE
queries as well, and the mode of identifying CQ deletes is consistent.CONTINUOUSLY
param can be followed byAS :identifer
to solve issue Named Continuous Queries #525 in a manner consistent with existing language.Whilst this would be a breaking change, I believe it's a clearer syntax and provides multiple benefits.
An example of a query utilising these keywords
SELECT sum(value) FROM orders GROUP BY time(1d) INTO daily_order_totals CONTINUOUSLY AS daily_order_totals
The text was updated successfully, but these errors were encountered: