Skip to content

Commit 00ada31

Browse files
clippy
1 parent 07462c2 commit 00ada31

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

datafusion/expr-common/src/columnar_value.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,7 @@ fn cast_union_array(
357357
if type_id == match_id {
358358
let o = match mode {
359359
UnionMode::Sparse => i,
360-
UnionMode::Dense => union_array
361-
.value_offset(i)
362-
.try_into()
363-
.map_err(|_| ArrowError::CastError("invalid offset".into()))?,
360+
UnionMode::Dense => union_array.value_offset(i),
364361
};
365362
indices.push(o as u32);
366363
null_mask.push(true);

0 commit comments

Comments
 (0)