Skip to content

Building nullable/non nullable ListArrays #3658

Closed Answered by Jefffrey
adriangb asked this question in Q&A
Discussion options

You must be logged in to vote

This is now possible, can use GenericListBuilder::with_field() to override the default field (which sets nullability to true):

let field = match &self.field {
Some(f) => f.clone(),
None => Arc::new(Field::new_list_field(values.data_type().clone(), true)),
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jefffrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants