SQL datasources: Consistent interval handling (#78517)

sql: apply the received interval-value
This commit is contained in:
Gábor Farkas
2024-01-24 08:47:07 +01:00
committed by GitHub
parent 6484f4a2ac
commit fd73b75ef7
5 changed files with 38 additions and 30 deletions

View File

@ -330,7 +330,8 @@ func TestIntegrationMySQL(t *testing.T) {
"rawSql": "SELECT $__timeGroup(time, $__interval) AS time, avg(value) as value FROM metric GROUP BY 1 ORDER BY 1",
"format": "time_series"
}`),
RefID: "A",
RefID: "A",
Interval: time.Second * 60,
TimeRange: backend.TimeRange{
From: fromStart,
To: fromStart.Add(30 * time.Minute),