Hello,
I'm trying to use an std::vector (of strings) in CallFunction ('is_in').
The arrow::compute::SetLookupOptions takes in a datum (array of of strings,
in my case to search).
I tried this
std::vector<std::string> vec;
auto buffer = arrow::Buffer::Wrap(vec);
auto arrayData = arrow::ArrayData::Make (arrow::utf8(), vec.size(),
{nullptr, buffer});
auto options = arrow::compute::SetLookupOptions(arrayData);
auto res = arrow::compute::CallFunction ("is_in", {arrowArray}, &options);
This is resulting in a crash.
I tried calling arrow::MakeArray(arrayData), and that is also failing.
But if I convert the std::vector to arrow::Array (using StringBuilder) then
there's no crash and I'm getting expected results.
Am I using the arrow::Buffer/arrow::ArrayData/arrow::Datum correctly, or
I'm missing something ?
Thanks,
Surya