You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by Murariu Fabian <mu...@gmail.com> on 2022/04/17 12:21:51 UTC

explore (or flatten) RecordBatch with ListArray column (like Spark explode)

Hi

Does arrow-rs support exploding a ListArray in a column of a RecordBatch ?

eg.

RecordBatch{
col1: [0, 1],
col2: [["a", "b"], ["c]]
}

exploding would result in
RecordBatch{
col1: [0, 0, 1],
col2: ["a", "b", "c"]
}

Thanks,
Fabian

[RUST] explore (or flatten) RecordBatch with ListArray column (like Spark explode)

Posted by Micah Kornfield <em...@gmail.com>.
Adding Rust to the title in case people don't read all the way through.

On Sun, Apr 17, 2022 at 5:22 AM Murariu Fabian <mu...@gmail.com>
wrote:

> Hi
>
> Does arrow-rs support exploding a ListArray in a column of a RecordBatch ?
>
> eg.
>
> RecordBatch{
> col1: [0, 1],
> col2: [["a", "b"], ["c]]
> }
>
> exploding would result in
> RecordBatch{
> col1: [0, 0, 1],
> col2: ["a", "b", "c"]
> }
>
> Thanks,
> Fabian
>