fixing mmh3 signed int32 calculation
@@ -155,7 +155,7 @@ func init() {
"mmh3": makeDslFunction(1, func(args ...interface{}) (interface{}, error) {
hasher := murmur3.New32WithSeed(0)
hasher.Write([]byte(fmt.Sprint(args[0])))
- return fmt.Sprint(hasher.Sum32()), nil
+ return fmt.Sprintf("%d", int32(hasher.Sum32())), nil
}),
"contains": makeDslFunction(2, func(args ...interface{}) (interface{}, error) {
return strings.Contains(types.ToString(args[0]), types.ToString(args[1])), nil
