Open simondean opened 8 years ago
New options:
Sort clause under both the metric clause and the point clause.
from metric.name
where fieldName == 1
group fieldName
aggregate all() as all
metric fieldName
sort fieldName
point fieldName
sort fieldName
Section names for metric and point clauses
metrics:
from metric.name
points:
where fieldName == 1
group fieldName
aggregate all() as all
metrics:
metric fieldName
points:
point fieldName
sort fieldName asc
Include the words "metrics" and "points" in all the clause names.
from metrics metric.name
where points fieldName == 1
group points fieldName
aggregate points all() as all
select metrics fieldName
select points fieldName
sort metrics fieldName asc
sort points fieldName asc
Include "metrics" and "points" in only some of the clause names.
from metric.name
where fieldName == 1
group fieldName
aggregate all() as all
select metric fieldName
select point fieldName
sort metric fieldName
sort point fieldName
Current query language looks like this:
It would be great to improve the language so that it is clearer which parts of a query apply to the metrics and which parts apply to the points.
From the example above, the follow parts apply to the metrics:
These parts apply to the points:
Approach 1 could look like this:
Approach 2 could look like this:
Alternative names for AGGREGATE could be: COMBINE
Approach 3 could look like this: