Open FrankChen021 opened 10 months ago
for timeseries,
group by interval(timestamp)
group by interval(timestamp, 30) -- field = timestamp, bucke count = 30
group by interval(timestamp, 30, 60) -- field = timestamp, bucket count = 30, minimal length is 60 seconds
for group by, the grouped field can be omitted in the SELECT clause
from exception-metrics select eventCount group by exceptionClass order by exceptionClass
The filter can be in the last of the statement so that it simplifies the processing of user input
from exception-metrics select eventCount group by exceptionClass order by exceptionClass WHERE appName = 'test'
Other things to do
To simply the processing at the FE, the server can turn this expression into original JSON object format.
Extension:
It's too verbose. Can be simplied by one expression such as:
There other two alternatives or references: