Skip to content

Commit

Permalink
feat: add arithmetic function for bitwise not with decimal arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
anshuldata committed Aug 1, 2024
1 parent 60c93d2 commit 06f380b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions extensions/functions_arithmetic_decimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ scalar_functions:
return: |-
max_precision = max(P1, P2)
DECIMAL<max_precision, 0>
- name: "bitwise_not"
description: >
Return the bitwise NOT result for one decimal input.
In inputs scale must be 0 (i.e. only integer types are allowed).
Result precision should be one more than input precision.
Result exceeding precision limit will raise an error.
impls:
- args:
- name: x
value: "DECIMAL<P,0>"
return: "DECIMAL<P+1,0>"
aggregate_functions:
- name: "sum"
description: Sum a set of values.
Expand Down

0 comments on commit 06f380b

Please sign in to comment.