You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/01/28 08:53:10 UTC

[GitHub] [arrow] joeyac edited a comment on issue #9325: [arrow c++]When I read parquet file and get a arrow::Table, how can I convert it to std::vector?

joeyac edited a comment on issue #9325:
URL: https://github.com/apache/arrow/issues/9325#issuecomment-768899759


   I didn't test schema like this.
   But the data in arrow buffer is flat and `ListArray` is a two-dim data, first you can try with `ListArray::value_slice(idx)` to get single row data. Notice that the single row data type is `std::shared_ptr<Array>`, then you can try cast it into a `StructArray`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org