Browse Source

fix window function query without group by

Sven Klemm 7 years ago
parent
commit
b3ebc86093
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/plugins/datasource/postgres/postgres_query.ts

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

@@ -152,7 +152,7 @@ export default class PostgresQuery {
         over = 'PARTITION BY ' + this.target.metricColumn;
       }
       if (!aggregate) {
-        over += 'ORDER BY ' + this.target.timeColumn;
+        over += ' ORDER BY ' + this.target.timeColumn;
       }
       switch (special.params[0]) {
         case 'increase':