Просмотр исходного кода

partition by metricColumn when using increase

Sven Klemm 7 лет назад
Родитель
Сommit
0935526d23
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/plugins/datasource/postgres/postgres_query.ts

+ 1 - 1
public/app/plugins/datasource/postgres/postgres_query.ts

@@ -245,7 +245,7 @@ export default class PostgresQuery {
       }
       switch (special.params[0]) {
         case 'increase':
-          query = query + ' - lag(' + query + ') OVER ()';
+          query = query + ' - lag(' + query + ') OVER (' + over + ')';
           break;
         case 'rate':
           let timeColumn = target.timeColumn;