Closed WillAyd closed 3 months ago
pretty high level ways of creating arrays:
One of the recently added helpers lets you wrap a std::vector<>
as an ArrowBuffer
, such that one can do:
There's definitely a lot of opportunities for C++ helpers; however, I am hesitant to add too much C++ here because there are other projects (e.g., Arrow C++ https://github.com/man-group/sparrow ) that have the developer bandwidth and C++ experience to do a much better job. The C++ helpers that currently exist are helpful to simplify testing (although I haven't gone through and simplified any additional tests yet 😬 ), since the Arrow C++ dependency in the tests occasionally causes problems.
Makes sense - will check out sparrow - looks cool
404 added a lot of really nice ways to iterate over the elements of arrays, but constructing an array is still quite a few steps.
As a convenience maybe we should add method(s) that allow you to fill array values from C++ iterables? Something along the lines of this (untested, demo-only code sans error handling):
Could allow users pretty high level ways of creating arrays: