Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Update src/compute/cast/dictionary_to.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Leitao <[email protected]>
  • Loading branch information
ritchie46 and jorgecarleitao authored Jul 8, 2022
1 parent cb41084 commit a77eb50
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/compute/cast/dictionary_to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@ pub(super) fn dictionary_cast_dyn<K: DictionaryKey + num_traits::NumCast>(

// Safety:
// we return an error on overflow so the integers remain within bounds
unsafe {
match_integer_type!(to_keys_type, |$T| {
key_cast!(keys, values, array, &to_key_type, $T, to_type.clone())
})
}
match_integer_type!(to_keys_type, |$T| {
key_cast!(keys, values, array, &to_key_type, $T, to_type.clone())
})
}
_ => unpack_dictionary::<K>(keys, values.as_ref(), to_type, options),
}
Expand Down

0 comments on commit a77eb50

Please sign in to comment.