Skip to content

Commit

Permalink
Merge pull request #13831 from prometheus/cherry-pick-13803
Browse files Browse the repository at this point in the history
Release 2.51: Cherry-pick #13803 bugfix for label_join
  • Loading branch information
bwplotka committed Mar 26, 2024
2 parents c05c155 + 17e2c30 commit d771cab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions promql/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,9 @@ func (ev *evaluator) evalLabelJoin(args parser.Expressions) (parser.Value, annot
}
srcLabels[i-3] = src
}
if !model.LabelName(dst).IsValid() {
panic(fmt.Errorf("invalid destination label name in label_join(): %s", dst))
}

val, ws := ev.eval(args[0])
matrix := val.(Matrix)
Expand Down

0 comments on commit d771cab

Please sign in to comment.