You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if you do a SELECT * query it will do two things.
rewrite the * to have all field names from the measurement
insert a GROUP BY * at then end of the query, which will expand out to all tag keys
This is causing a bunch of confusion and bugs. Instead, SELECT * should select all field values AND it should insert the tag keys and values in the result set.
SELECT value, host from foo group by host, region
then host should be included in the columns
any tag keys they have in the GROUP BY statement, shouldn’t be written into the columns in the case of the SELECT *
select * from foo group by *
No tags in the columns, only group by tags
Currently, if you do a
SELECT *
query it will do two things.*
to have all field names from the measurementGROUP BY *
at then end of the query, which will expand out to all tag keysThis is causing a bunch of confusion and bugs. Instead,
SELECT *
should select all field values AND it should insert the tag keys and values in the result set.For example if you have the following data:
And you do this query:
SELECT * FROM cpu
you should get in the result set a single series. The important bit in the response is this:Note that
time
is always the first column and the other columns are sorted lexicographically.The insertion of the tags into the result set will need to happen at the Mapper level since the reducer may or may not know about these.
Ideally, this work will also make it possible to do queries like this:
The text was updated successfully, but these errors were encountered: