Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Implement writing FixedSizeList to Parquet #1387

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kylebarron
Copy link
Contributor

This is building on top of #1386 to attempt to write a packed array of values from a fixed size list array to a parquet leaf.

I'm getting a dreaded borrowed value does not live long enough that I was hoping you'd be able to give some advice on

error[E0597]: `*new_array` does not live long enough
   --> src/io/parquet/write/pages.rs:193:33
    |
159 |   fn to_leaves_recursive<'a>(array: &'a dyn Array, leaves: &mut Vec<&'a dyn Array>) {
    |                          -- lifetime `'a` defined here
...
193 |                   let new_array = new_array
    |  _________________________________^
194 | |                     .as_any()
    | |_____________________________^ borrowed value does not live long enough
...
197 |                   to_leaves_recursive(new_array.values().as_ref(), leaves);
    |                   -------------------------------------------------------- argument requires that `*new_array` is borrowed for `'a`
198 |               } else {
    |               - `*new_array` dropped here while still borrowed


Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant