InfluxDB: InfluxQL: always apply time interval end (#34308)

This commit is contained in:
Gábor Farkas
2021-05-19 16:24:14 +02:00
committed by GitHub
parent de95bf2c04
commit f48708bb9e

View File

@ -530,11 +530,6 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
getTimeFilter(options: any) {
const from = this.getInfluxTime(options.rangeRaw.from, false, options.timezone);
const until = this.getInfluxTime(options.rangeRaw.to, true, options.timezone);
const fromIsAbsolute = from[from.length - 1] === 'ms';
if (until === 'now()' && !fromIsAbsolute) {
return 'time >= ' + from;
}
return 'time >= ' + from + ' and time <= ' + until;
}