Le 11/05/2021 à 22:10, Weston Pace a écrit :
How does one decide between "utility function" and "compute function"? For example, https://issues.apache.org/jira/browse/ARROW-12739 is very similar to StructArray::Make which is implemented as a static function. However, 12739 would require pool allocation (to concatenate the list items into one large contiguous array) and array iteration (to copy into the allocated array). Does that make it a compute function?
If it's useful internally as a building block, then IMHO it should probably be a utility function.
In this case it is a user request, and it has a non-trivial computation cost, so I'd say it should be a compute function.
Regards Antoine.
