diff --git a/pkg/expr/mathexp/types.go b/pkg/expr/mathexp/types.go index ba9115c7443..8317f97c5bd 100644 --- a/pkg/expr/mathexp/types.go +++ b/pkg/expr/mathexp/types.go @@ -88,7 +88,10 @@ func (s Scalar) AsDataFrame() *data.Frame { return s.Frame } func NewScalar(name string, f *float64) Scalar { frame := data.NewFrame("", data.NewField(name, nil, []*float64{f}), - ) + ).SetMeta(&data.FrameMeta{ + Type: data.FrameTypeNumericMulti, + TypeVersion: data.FrameTypeVersion{0, 1}, + }) return Scalar{frame} } diff --git a/pkg/tests/api/alerting/api_alertmanager_test.go b/pkg/tests/api/alerting/api_alertmanager_test.go index c24a18f2411..040b80ffcec 100644 --- a/pkg/tests/api/alerting/api_alertmanager_test.go +++ b/pkg/tests/api/alerting/api_alertmanager_test.go @@ -2419,7 +2419,11 @@ func TestIntegrationEval(t *testing.T) { "nullable": true } } - ] + ], + "meta": { + "type": "numeric-multi", + "typeVersion": [0, 1] + } }, "data": { "values": [ @@ -2477,7 +2481,11 @@ func TestIntegrationEval(t *testing.T) { "nullable": true } } - ] + ], + "meta": { + "type": "numeric-multi", + "typeVersion": [0, 1] + } }, "data": { "values": [ @@ -2568,7 +2576,11 @@ func TestIntegrationEval(t *testing.T) { "nullable": true } } - ] + ], + "meta": { + "type": "numeric-multi", + "typeVersion": [0, 1] + } }, "data": { "values": [