Hi Mura,

The short answer is: yes, it is possible. Naively, to expose such a
function something may need to be added in cython. I am learning more about
how to add new compute functions, so I am not sure yet if functions in the
function registry are automatically exposed to other languages (e.g. R,
python, etc.). When I find out more about how this is done, I can follow up
if this is still unanswered.

There are examples of functions that you can call directly without using
"CallFunction;" for example, arrow::compute::Add. The second code sample on
[1] should show how this is done.

[1]: https://arrow.apache.org/docs/cpp/compute.html#invoking-functions

Aldrin Montana
Computer Science PhD Student
UC Santa Cruz


On Wed, Jun 22, 2022 at 12:34 PM Murali S <muralibala8...@gmail.com> wrote:

> Hi ,
>
> I was wondering if it is possible to add a C++ Function to the Compute
> FunctionRegistry
> <
> https://arrow.apache.org/docs/cpp/api/compute.html#_CPPv4N5arrow7compute16FunctionRegistryE
> >
> and
> then use the functions in python. Would be great if you could provide
> examples of such usage.
> Also are all functions added to the FunctionRegistry only callable using
> the GetFunction API with the function name as string ? Would like to know
> if there is a way to just do arrow::compute::FuncA where FuncA is the newly
> added function
>
> Thanks in advance
> Mura
>

Reply via email to