document $__timeGroupAlias

This commit is contained in:
Sven Klemm
2018-08-01 21:23:00 +02:00
parent b71d10a7a4
commit 82c473e3af
6 changed files with 6 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ Macros:
- $__timeFilter(column) -> column BETWEEN '2017-04-21T05:01:17Z' AND '2017-04-21T05:01:17Z'
- $__unixEpochFilter(column) -> column >= 1492750877 AND column <= 1492750877
- $__timeGroup(column,'5m') -> (extract(epoch from column)/300)::bigint*300
- $__timeGroupAlias(column,'5m') -> (extract(epoch from column)/300)::bigint*300 AS "time"
Example of group by and order by with $__timeGroup:
SELECT