Skip to content

Commit

Permalink
Try out type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
dadepo committed Dec 16, 2023
1 parent af4a93f commit 5e1cd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/postgres/math_udfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn acosd(args: &[ArrayRef]) -> Result<ArrayRef> {
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 {
Expand Down

0 comments on commit 5e1cd28

Please sign in to comment.