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 2, 2024
1 parent c1553df commit 766c0f6
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 @@ -166,6 +166,17 @@ scalar_functions:
- name: "n"
value: "DECIMAL<P,0>"
return: "DECIMAL<38,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 766c0f6

Please sign in to comment.