arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Pitrou <anto...@python.org>
Subject Re: [Rust] Creating RecordBatch-es from C Data Interface
Date Thu, 29 Apr 2021 17:13:52 GMT
On Thu, 29 Apr 2021 13:32:38 -0000
Doron Chen <doron.chen@gmail.com> wrote:
> Hi,
> Is there a way create a Rust RecordBatch from an (FFI_ArrowArray, FFI_ArrowSchema) pair?
> Thanks, Doron

Assuming Rust doesn't already expose an API for that, a simple way is
to use: first create an Array from the FFI pair, check that's it's a
struct array, then convert that struct array to a record batch.

This is basically how it's done on the C++ side.

Regards

Antoine.



Mime
View raw message