Skip to content

Commit

Permalink
feat: abs add decimal type (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiedeyantu committed May 21, 2024
1 parent bef77df commit beff1f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/functions_arithmetic_decimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ scalar_functions:
scale_after_borrow = max(init_scale - delta, min_scale)
scale = init_prec > 38 ? scale_after_borrow : init_scale
DECIMAL<prec, scale>
-
name: "abs"
description: Calculate the absolute value of the argument.
impls:
- args:
- name: x
value: decimal<P,S>
return: decimal<P,S>

aggregate_functions:
- name: "sum"
description: Sum a set of values.
Expand Down

0 comments on commit beff1f0

Please sign in to comment.