You cannot cast a chunked array to int64 or any other array type. But you can use ChunkedArrayIterator with appropriate type for the template parameter. The dereferenced iterator gives you an optional of underlying type . Like std::optional<int64_t>. Dereferencing the optional you will get the value stored. But for string types you will get a string_view after dereferencing the optional.
Hope this helps On Sat, 1 Apr 2023 at 19:01, Алексей Рябов <[email protected]> wrote: > Hi. There are a lot of examples in the documentation how to create > arrow tables, read parquet files into tables and so on. > But i could nt find any example how to use table. My task is > following: I have a parquet file, want to read it and send to > PostgreSQL as a Tuples. Looking for a way to iterate over a 'table' > object to construct tuples from it. Basic question is how to get value > from a chinked array. Should I cast it to int64 array, for example, or > should i retrieve values as Scalars? Please advise. >
