Skip to content

Commit

Permalink
use new_empty_array
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed May 26, 2021
1 parent c011cff commit 78cb966
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arrow/src/compute/kernels/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ pub fn filter(array: &Array, filter: &BooleanArray) -> Result<ArrayRef> {
match iter.filter_count {
0 => {
// return empty
let data = ArrayData::new_empty(array.data_type());
Ok(make_array(data))
Ok(new_empty_array(array.data_type()))
}
len if len == array.len() => {
// return all
Expand Down

0 comments on commit 78cb966

Please sign in to comment.