arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Allen <>
Subject Accessing nested lists in arrow::Table in c++
Date Tue, 28 Jul 2020 15:38:08 GMT
I'm trying to write a C++ unit test that accesses a populated arrow::Table,
where the table contains a column with a 2-D matrix, i.e. each row has a
list(list(double)). I haven't been able to figure out how to access that
data to finish this unit test. I am getting stuck here:

auto cmat = table->GetColumnByName("mat");
auto lmat = std::static_pointer_cast<arrow::ListArray>(cmat->chunk(0))
// How do I get from the parent ListArray to the child ListArrays?

I took a look at,
but couldn't quite map it to my use case. Thanks,


View raw message