How to create arrow array of dates using ArrayFromJSON

  apache-arrow, c++

Basically, I want to create array of date32 type using nice ArrayFromJSON function which is super handy for writing unit tests.
I’ve tried:

auto dateArray = arrow::ArrayFromJSON(arrow::date32(), R"(["2017-11-01"])");

But this doesn’t work at least for arrow version is 1.0. Could not find something similar in unit tests.

Source: Windows Questions C++

LEAVE A COMMENT