scql
scql copied to clipboard
关于添加自定义的算子
你好,我想请问下算子开发的具体流程,我参考了cos算子的实现,但似乎只在pkg/expression/expression_to_stmt.go
的convertScalatFunction
添加了
case ast.Cos:
return &ast.FuncCallExpr{FnName: model.NewCIStr(expr.FuncName.L), Args: children}, nil
我仿照测试了Sin,但并不能成功。我是不是遗漏了什么某些必要的实现?
case ast.Sin:
return &ast.FuncCallExpr{FnName: model.NewCIStr(expr.FuncName.L), Args: children}, nil