Hi Roland,

For primitive types, there are value_slice methods which would allow you to
get the array's contents as a vector, but you have to handle the null
values as the vectors wouldn't return an Option<T>.
We haven't seen demand yet in converting arrays to JSON, but the
integration crate (
https://github.com/apache/arrow/blob/master/rust/integration-testing/src/bin/arrow-json-integration-test.rs#L420)
would contain some logic to convert to JSON already.

Neville

On Wed, 16 Sep 2020 at 16:57, Roland Peelen <roland.pee...@tenzir.com>
wrote:

> Hi Guys,
>
> Quick question. Is there such a thing in the rust library as there is in
> the pyarrow lib to convert from Arrow types to rust internal types? For
> instance, to convert to JSON down the line?
>
> Or will I have to just go through the colums / rows and match on the
> schema type to cast the buffers to a certain type?
>
> Thanks!
> Roland
>

Reply via email to