SSE: Support time series frames with non-nullable float64 values (#32608)

* SSE: fix reduce to handle non-null
* add type for data.Field that is float64 or *float64
* resample fix for non-null input case, add couple non-null tests
This commit is contained in:
Kyle Brandt
2021-04-01 14:33:35 -04:00
committed by GitHub
parent d42a5b2561
commit 512faa7c9c
7 changed files with 167 additions and 115 deletions
+13
View File
@@ -178,6 +178,19 @@ func TestSeriesReduce(t *testing.T) {
},
},
},
{
name: "mean series (non-null-value)",
red: "mean",
varToReduce: "A",
vars: aSeriesNoNull,
errIs: require.NoError,
resultsIs: require.Equal,
results: Results{
[]Value{
makeNumber("", nil, float64Pointer(1.5)),
},
},
},
{
name: "count empty series",
red: "count",