mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
partition by metricColumn when using increase
This commit is contained in:
parent
bbe7b9b908
commit
0935526d23
@ -245,7 +245,7 @@ export default class PostgresQuery {
|
|||||||
}
|
}
|
||||||
switch (special.params[0]) {
|
switch (special.params[0]) {
|
||||||
case 'increase':
|
case 'increase':
|
||||||
query = query + ' - lag(' + query + ') OVER ()';
|
query = query + ' - lag(' + query + ') OVER (' + over + ')';
|
||||||
break;
|
break;
|
||||||
case 'rate':
|
case 'rate':
|
||||||
let timeColumn = target.timeColumn;
|
let timeColumn = target.timeColumn;
|
||||||
|
Loading…
Reference in New Issue
Block a user