mirror of
https://gitee.com/rulego/streamsql.git
synced 2025-07-08 17:00:14 +00:00
fix:修复错误检查
This commit is contained in:
@ -241,11 +241,11 @@ func (f *CustomGeometricMeanFunction) Clone() AggregatorFunction {
|
||||
// RegisterCustomFunctions 注册自定义函数的示例
|
||||
func RegisterCustomFunctions() {
|
||||
// 注册自定义聚合函数
|
||||
Register(NewCustomProductFunction())
|
||||
Register(NewCustomGeometricMeanFunction())
|
||||
_ = Register(NewCustomProductFunction())
|
||||
_ = Register(NewCustomGeometricMeanFunction())
|
||||
|
||||
// 注册自定义分析函数
|
||||
Register(NewCustomMovingAverageFunction(5)) // 5个值的移动平均
|
||||
_ = Register(NewCustomMovingAverageFunction(5)) // 5个值的移动平均
|
||||
|
||||
// 注册适配器
|
||||
RegisterAggregatorAdapter("product")
|
||||
|
@ -353,8 +353,6 @@ func (f *ChrFunction) Execute(ctx *FunctionContext, args []interface{}) (interfa
|
||||
return string(rune(code)), nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
// UrlEncodeFunction URL编码函数
|
||||
type UrlEncodeFunction struct {
|
||||
*BaseFunction
|
||||
|
Reference in New Issue
Block a user