From d2355b3da378dcdd00c5a4abe1f59ca9600862c4 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Thu, 11 Jul 2024 07:50:51 -0600 Subject: [PATCH] code cleanup --- native/spark-expr/src/abs.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/native/spark-expr/src/abs.rs b/native/spark-expr/src/abs.rs index 4ccc9495f..fa25a7775 100644 --- a/native/spark-expr/src/abs.rs +++ b/native/spark-expr/src/abs.rs @@ -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,