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

Group by nothing #3336

Closed
vfournier11 opened this issue Jul 15, 2015 · 2 comments
Closed

Group by nothing #3336

vfournier11 opened this issue Jul 15, 2015 · 2 comments

Comments

@vfournier11
Copy link

When I do a SELECT * FROM measurements I get multiples series.

It is possible to group the results by one/several tags using GROUP BY [tagname].

Now, can I group all results?

Is it possible to make a GROUP BY "nothing" to have all series merged together?

@beckettsean
Copy link
Contributor

This is current design but not the long-term desired behavior. Unfortunately, with SELECT * there is currently a hack/workaround that implicitly does a GROUP BY * to return the tags. As such, SELECT * cannot currently be executed without at least an implicit hidden GROUP BY.

SELECT fieldval1, fieldval2, etc. with no GROUP BY will automatically merge all series together, but you will need to explicitly name the fields you wish to query.

@beckettsean
Copy link
Contributor

Related to #3326, regarding the internal GROUP BY *

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