fix group by column

This commit is contained in:
Sven Klemm
2018-03-04 19:35:43 +01:00
parent e8c6341fed
commit 26e09b598c
2 changed files with 18 additions and 10 deletions

View File

@ -394,10 +394,10 @@ export class PostgresQueryCtrl extends QueryCtrl {
options.push(this.uiSegmentSrv.newSegment({ value: 'LIMIT' }));
}
if (!this.queryModel.hasGroupByTime()) {
options.push(this.uiSegmentSrv.newSegment({ value: 'time($interval)' }));
options.push(this.uiSegmentSrv.newSegment({ type: 'time', value: 'time(1m,none)' }));
}
for (let tag of tags) {
options.push(this.uiSegmentSrv.newSegment({ value: tag.text }));
options.push(this.uiSegmentSrv.newSegment({ type: 'column', value: 'column(' + tag.text + ')' }));
}
return options;
})