InfluxDB: fix numeric aliases in queries (#41531) (#41587)

* influxdb: alerting: handle out-of-range numeric aliases

* influxdb: updated documentation

(cherry picked from commit eb47a58029)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-11-11 09:48:58 +01:00
committed by GitHub
co-authored by Gábor Farkas
parent 3110e11330
commit ec8e606de0
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ func formatFrameName(row Row, column string, query *Query) string {
}
pos, err := strconv.Atoi(aliasFormat)
if err == nil && len(nameSegment) >= pos {
if err == nil && len(nameSegment) > pos {
return []byte(nameSegment[pos])
}