Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jul 11, 2024
1 parent c60266a commit d2355b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions native/spark-expr/src/abs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ impl ScalarUDFImpl for Abs {
if self.eval_mode == EvalMode::Legacy {
Ok(args[0].clone())
} else {
Err(DataFusionError::External(Box::new(
SparkError::ArithmeticOverflow {
from_type: self.data_type_name.clone(),
},
)))
Err(SparkError::ArithmeticOverflow {
from_type: self.data_type_name.clone(),
}
.into())
}
}
other => other,
Expand Down

0 comments on commit d2355b3

Please sign in to comment.