raulcd commented on code in PR #46261:
URL: https://github.com/apache/arrow/pull/46261#discussion_r2131932916


##########
r/src/compute.cpp:
##########
@@ -618,6 +622,13 @@ SEXP compute__CallFunction(std::string func_name, 
cpp11::list args, cpp11::list
 
 // [[arrow::export]]
 std::vector<std::string> compute__GetFunctionNames() {
+#if ARROW_VERSION_MAJOR >= 21
+  auto compute_init_status_ = arrow::compute::Initialize();

Review Comment:
   I've been able to move the registration to an independent 
`compute__Initialize` function and call it on initialization through 
`R_init_arrow`, please see changes on `r/src` on the diff. This approach is 
better than doing it on `GetFunctionNames`



-- 
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

Reply via email to