SSE: Keep value name from numeric table (#58831)

fixes #48868
pull/58919/head
Kyle Brandt 3 years ago committed by GitHub
parent f2066398f0
commit 1953d473c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/expr/nodes.go

@ -389,7 +389,7 @@ func extractNumberSet(frame *data.Frame) ([]mathexp.Number, error) {
labels[key] = val.(string) // TODO check assertion / return error
}
n := mathexp.NewNumber("", labels)
n := mathexp.NewNumber(frame.Fields[numericField].Name, labels)
// The new value fields' configs gets pointed to the one in the original frame
n.Frame.Fields[0].Config = frame.Fields[numericField].Config

Loading…
Cancel
Save