GitHub user Jefffrey closed the discussion with a comment: Getting rows from 
`RecordBatch`

There is an example here of iterating record batches in a row like fashion:

https://github.com/apache/arrow-rs/blob/12091af35e5070dae33e86fbe988d9319521cd16/arrow-avro/examples/decode_kafka_stream.rs#L122-L139

- Need to downcast the columns to expected types
- Using `value()` to get the actual value; note this should ideally be checked 
with `is_null()` prior

> Is this kind of conversion into `Row` objects easy to perform using existing 
> APIs?

Its definitely a bit cumbersome

> Should row reader over `RecordBatch` be added as a new feature to 
> `parquet::record` module? Or is there going to be 
> `parquet::file::async_reader::AsyncFileReader`?

I'm not sure if we have appetite for such changes, but can always raise an 
issue for a feature request if desired

GitHub link: 
https://github.com/apache/arrow-rs/discussions/4435#discussioncomment-17819206

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to