fix window function query without group by

This commit is contained in:
Sven Klemm 2018-07-23 07:52:42 +02:00
parent e1a37cf275
commit b3ebc86093

View File

@ -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':