Explorar el Código

partition by metricColumn when using increase

Sven Klemm hace 7 años
padre
commit
0935526d23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;