Skip to content

Commit d15880f

Browse files
committed
remove meaningless code
1 parent 4cc36bc commit d15880f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

arrow/src/compute/kernels/cast.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,7 @@ pub fn cast_with_options(
372372
return Ok(array.clone());
373373
}
374374
match (from_type, to_type) {
375-
(Decimal(p1, s1), Decimal(p2, s2)) => {
376-
if p1.eq(p2) && s1.eq(s2) {
377-
Ok(array.clone())
378-
} else {
379-
cast_decimal_to_decimal(array, s1, p2, s2)
380-
}
381-
}
375+
(Decimal(_, s1), Decimal(p2, s2)) => cast_decimal_to_decimal(array, s1, p2, s2),
382376
(Decimal(_, scale), _) => {
383377
// cast decimal to other type
384378
match to_type {

0 commit comments

Comments
 (0)