From 5e1cd28a4d401bfe6e009dea92cc20e4bf8677c1 Mon Sep 17 00:00:00 2001 From: Dadepo Aderemi Date: Sat, 16 Dec 2023 19:45:39 +0400 Subject: [PATCH] Try out type casting --- src/postgres/math_udfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postgres/math_udfs.rs b/src/postgres/math_udfs.rs index a975f80..1614ecd 100644 --- a/src/postgres/math_udfs.rs +++ b/src/postgres/math_udfs.rs @@ -21,7 +21,7 @@ pub fn acosd(args: &[ArrayRef]) -> Result { if result.fract() < 0.9 { float64array_builder.append_value(result); } else { - float64array_builder.append_value(result.ceil()); + float64array_builder.append_value(result.ceil() as i64 as f64); } Ok::<(), DataFusionError>(()) } else {