Add missing case for type []int32

This commit is contained in:
Holger Obermaier 2023-08-17 11:24:06 +02:00
parent c3004f8c6d
commit 89c93185d4

View File

@ -123,6 +123,13 @@ func avgfunc(args interface{}) (interface{}, error) {
s += x
}
return s / int64(len(values)), nil
case []int32:
var s int32 = 0
for _, x := range values {
s += x
}
return s / int32(len(values)), nil
}
return 0.0, nil
}