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

Commit

Permalink
don't check if use_validity==true
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jul 26, 2021
1 parent 7dd1cff commit 0c0595f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/growable/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<'a, O: Offset> GrowableList<'a, O> {
pub fn new(arrays: &[&'a dyn Array], mut use_validity: bool, capacity: usize) -> Self {
// if any of the arrays has nulls, insertions from any array requires setting bits
// as there is at least one array with nulls.
if arrays.iter().any(|array| array.null_count() > 0) {
if use_validity || arrays.iter().any(|array| array.null_count() > 0) {
use_validity = true;
};

Expand Down

0 comments on commit 0c0595f

Please sign in to comment.