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

Document INTO keyword #32

Closed
jackzampolin opened this issue Dec 9, 2015 · 0 comments
Closed

Document INTO keyword #32

jackzampolin opened this issue Dec 9, 2015 · 0 comments
Assignees

Comments

@jackzampolin
Copy link
Contributor

Originally: https://github.com/influxdb/influxdb.com/issues/520

Starting from version 0.9.5 INTO keyword can be used outside of continuous queries: influxdata/influxdb#4409.

But it's still unclear how to use this feature.

I was able to make two-step filtering with queries like these:

SELECT last(size) INTO temp FROM vm GROUP BY hostname
SELECT sum(last) FROM temp
But here are two questions:

  1. how to join them into a single query? Semicolon does not work by some reason.
  2. I'm using temp, but what does this syntax mean? It is some kind of a local variable? Is it performant and safe to use on a large number of queries in Grafana?

Thanks.

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