From b3ebc8609383b94584e3d1f083ae15940044c422 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Mon, 23 Jul 2018 07:52:42 +0200 Subject: [PATCH] fix window function query without group by --- public/app/plugins/datasource/postgres/postgres_query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/postgres/postgres_query.ts b/public/app/plugins/datasource/postgres/postgres_query.ts index a16a9e5b458..d0aa8a45841 100644 --- a/public/app/plugins/datasource/postgres/postgres_query.ts +++ b/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':