Sfoglia il codice sorgente

partition by metricColumn when using increase

Sven Klemm 7 anni fa
parent
commit
0935526d23

+ 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;