paleolimbot commented on code in PR #13397: URL: https://github.com/apache/arrow/pull/13397#discussion_r916744476
########## r/src/compute.cpp: ########## @@ -574,3 +576,186 @@ SEXP compute__CallFunction(std::string func_name, cpp11::list args, cpp11::list std::vector<std::string> compute__GetFunctionNames() { return arrow::compute::GetFunctionRegistry()->GetFunctionNames(); } + +class RScalarUDFKernelState : public arrow::compute::KernelState { + public: + RScalarUDFKernelState(cpp11::sexp exec_func, cpp11::sexp resolver) + : exec_func_(exec_func), resolver_(resolver) {} + + cpp11::function exec_func_; + cpp11::function resolver_; +}; + +class RScalarUDFOutputTypeResolver : public arrow::compute::OutputType::Resolver { + public: + arrow::Result<arrow::ValueDescr> operator()( + arrow::compute::KernelContext* context, Review Comment: The signature of `Resolver` doesn't have a `const` so I think this can't either! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org