We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07462c2 commit 00ada31Copy full SHA for 00ada31
datafusion/expr-common/src/columnar_value.rs
@@ -357,10 +357,7 @@ fn cast_union_array(
357
if type_id == match_id {
358
let o = match mode {
359
UnionMode::Sparse => i,
360
- UnionMode::Dense => union_array
361
- .value_offset(i)
362
- .try_into()
363
- .map_err(|_| ArrowError::CastError("invalid offset".into()))?,
+ UnionMode::Dense => union_array.value_offset(i),
364
};
365
indices.push(o as u32);
366
null_mask.push(true);
0 commit comments