diff --git a/tools/python_api/src_cpp/py_udf.cpp b/tools/python_api/src_cpp/py_udf.cpp index f25408041f7..2446f0329bf 100644 --- a/tools/python_api/src_cpp/py_udf.cpp +++ b/tools/python_api/src_cpp/py_udf.cpp @@ -18,7 +18,9 @@ struct PyUDFScalarFunction : public ScalarFunction { PyUDFScalarFunction(std::string name, std::vector parameterTypeIDs, common::LogicalTypeID returnTypeID, scalar_func_exec_t execFunc, scalar_bind_func bindFunc) : ScalarFunction{std::move(name), std::move(parameterTypeIDs), returnTypeID, - std::move(execFunc), std::move(bindFunc)} {} + std::move(execFunc)} { + this->bindFunc = bindFunc; + } DELETE_COPY_DEFAULT_MOVE(PyUDFScalarFunction);