scql icon indicating copy to clipboard operation
scql copied to clipboard

关于添加自定义的算子

Open Repo-Zhuang opened this issue 9 months ago • 4 comments

你好,我想请问下算子开发的具体流程,我参考了cos算子的实现,但似乎只在pkg/expression/expression_to_stmt.goconvertScalatFunction添加了

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

Repo-Zhuang avatar May 15 '24 07:05 Repo-Zhuang