Skip to content(if available)orjump to list(if available)

Sparrow, a Modern C++ Implementation of the Apache Arrow Columnar Format

amluto

This is supposed to be idiomatic?!?

    namespace sp = sparrow;
    sp::primitive_array<int> ar = { 1, 3, 5, 7, 9 };
    // Caution: get_arrow_structures returns pointers, not values
    auto [arrow_array, arrow_schema] = sp::get_arrow_structures(std::move(ar));
    // Use arrow_array and arrow_schema as you need (serialization,
    // passing it to a third party library)
    // ...
    // do NOT release the C structures in the end, the "ar" variable will do it
   // for you
I’m sorry, resources are kept alive by an object that has been moved from?