This is currently being implemented for Python: 
https://github.com/apache/arrow/pull/12590 It may not land for 8.0.0 but should 
be there for 9.0.0, presumably.

It is already possible in C++. The same APIs that built-in functions use to 
register themselves should be available to applications and there's a fairly 
trivial example of this in [1]. Such a function would also be available from 
Python/R/etc. if you could figure out how to package/distribute/load the 
application library appropriately.

[1]: 
https://github.com/apache/arrow/blob/e1e782a4542817e8a6139d6d5e022b56abdbc81d/cpp/examples/arrow/compute_register_example.cc

On Fri, Apr 22, 2022, at 15:04, Wenlei Xie wrote:
> Hi,
> 
> I am wondering if I can define my own Arrow Compute function and use it, say 
> in PyArrow? It looks like Compute Function has a FuntionRegistry, but I 
> didn't find documentation about how to write your own Arrow Compute function 
> (but maybe just didn't find the right place)
> 
> Thank you so much!
> 
> -- 
> Best Regards,
> Wenlei Xie 
> 
> Email: [email protected]

Reply via email to