Skip to content

Commit 4b24a9a

Browse files
committed
u
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 0cb9556 commit 4b24a9a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

vortex-duckdb/src/exporter/dict.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use vortex::array::arrays::ConstantArray;
1414
use vortex::array::arrays::ConstantVTable;
1515
use vortex::array::arrays::DictArray;
1616
use vortex::array::arrays::PrimitiveArray;
17+
use vortex::array::builtins::ArrayBuiltins;
1718
use vortex::array::mask::MaskExecutor;
1819
use vortex::array::vectors::VectorIntoArray;
1920
use vortex::compute;
@@ -190,10 +191,7 @@ pub(crate) fn new_vector_exporter_with_flatten(
190191
if let Some(constant) = values.as_opt::<ConstantVTable>() {
191192
return constant::new_exporter_with_mask(
192193
&ConstantArray::new(constant.scalar().clone(), array.codes().len()),
193-
array
194-
.codes()
195-
.apply(&not(is_null(root())))?
196-
.execute_mask(session)?,
194+
array.codes().is_null()?.not()?.execute_mask(session)?,
197195
cache,
198196
);
199197
}

vortex-duckdb/src/exporter/fixed_size_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub(crate) fn new_vector_exporter(
107107

108108
let mask = array.validity();
109109

110-
if let Validity::AllInvalid = mask {
110+
if matches!(mask, Validity::AllInvalid) {
111111
return Ok(all_invalid::new_exporter(array.len(), &ltype));
112112
}
113113

0 commit comments

Comments
 (0)