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 (#228)
Browse files Browse the repository at this point in the history
ritchie46 authored Jul 29, 2021

Verified

This commit was signed with the committer’s verified signature.
SorsOps SorsOps
1 parent cba00c4 commit 95fe10a
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
@@ -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;
};

0 comments on commit 95fe10a

Please sign in to comment.