niyue opened a new pull request, #37787:
URL: https://github.com/apache/arrow/pull/37787

   Add external function registry support to gandiva. JSON based function 
registry can be used for describing the function metadata, and LLVM bitcode can 
be automatically loaded as pre-compiled external functions.
   
   ### Rationale for this change
   This PR tries to enhance Gandiva by supporting external function registry, 
so that developers can author third party functions without modifying Gandiva's 
core codebase. See https://github.com/apache/arrow/issues/37753 for more 
details.
   
   
   ### What changes are included in this PR?
   This PR implements basic support of external function registry. It primarily 
implements two parts to make it work:
   1) define a JSON based function registry format to describe the function 
metadata, and support loading and parsing such JSON based function registry 
files from some directory
   2) automatically load and parse LLVM bitcode from files, so that third party 
pre-compiled functions can be integrated via LLVM bitcode
   
   The overall flow looks like this:
   <img width="2750" alt="external-func-registry" 
src="https://github.com/apache/arrow/assets/27754/8a961d01-aba0-45b4-9e5e-b46245f01524";>
   
   
   ### Are these changes tested?
   Some unit tests are added to verify this enhancement
   
   ### Are there any user-facing changes?
   No change to the existing behavior. But some new ways to interfacing the 
library is added in this PR.
   
   


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