niyue commented on code in PR #37787:
URL: https://github.com/apache/arrow/pull/37787#discussion_r1330212433


##########
cpp/src/gandiva/function_registry.cc:
##########
@@ -45,6 +47,21 @@ std::vector<NativeFunction> FunctionRegistry::pc_registry_;
 
 SignatureMap FunctionRegistry::pc_registry_map_ = InitPCMap();
 
+std::vector<NativeFunction> LoadExternalFunctionRegistry() {
+  std::string ext_dir;
+  const char* ext_dir_env = std::getenv("GANDIVA_EXTENSION_DIR");

Review Comment:
   Users can specify an environment variable called `GANDIVA_EXTENSION_DIR` to 
ask the library to load the external registry file and corresponding bitcode 
files from this directory. This directory could contain multiple json registry 
files and bitcode files, and all of them will be loaded automatically once this 
env var is set.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to