Skip to content

Commit f4bfcff

Browse files
committed
fix
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent e8a0d9f commit f4bfcff

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

vortex-duckdb/src/convert/expr.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ fn like_pattern_str(value: &duckdb::ExpressionRef) -> VortexResult<Option<String
4444
}
4545
}
4646

47+
#[allow(clippy::cognitive_complexity)]
4748
pub fn try_from_bound_expression(
4849
value: &duckdb::ExpressionRef,
4950
) -> VortexResult<Option<Expression>> {
5051
let Some(value) = value.as_class() else {
51-
tracing::debug!("no expression class id {:?}", value.as_class_id());
52+
debug!("no expression class id {:?}", value.as_class_id());
5253
return Ok(None);
5354
};
5455
Ok(Some(match value {
@@ -164,7 +165,7 @@ pub fn try_from_bound_expression(
164165
Like.new_expr(LikeOptions::default(), [value, pattern])
165166
}
166167
_ => {
167-
tracing::debug!("bound function {}", func.scalar_function.name());
168+
debug!("bound function {}", func.scalar_function.name());
168169
return Ok(None);
169170
}
170171
},

vortex-duckdb/src/exporter/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl ColumnExporter for ConstantExporter {
6565
fn export(
6666
&self,
6767
_offset: usize,
68-
_len: usize,
68+
len: usize,
6969
vector: &mut VectorRef,
7070
_ctx: &mut ExecutionCtx,
7171
) -> VortexResult<()> {

vortex-duckdb/src/exporter/vector.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

44
use vortex::mask::Mask;
5-
use vortex::mask::MaskValues;
65

76
use crate::cpp::duckdb_vx_vector_set_all_valid;
87
use crate::duckdb::Value;
@@ -31,7 +30,7 @@ impl VectorRef {
3130
Mask::Values(arr) => {
3231
let true_count = arr.bit_buffer().slice(offset..(offset + len)).true_count();
3332
if true_count == len {
34-
unsafe { self.set_all_true_validity(len) }
33+
self.set_all_true_validity()
3534
} else if true_count == 0 {
3635
self.set_all_false_validity()
3736
} else if let Some(zc) = zero_copy.filter(|_| offset.is_multiple_of(64)) {

0 commit comments

Comments
 (0)