sub_wrapping
a - b on Int64, wrapping on overflow.
Flags
| Flag | Value |
|---|---|
| Kind | scalar |
| Nulls | a null argument gives null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
Example
A pipeline from the language's tested corpus that uses sub_wrapping, over the example tables.
from orders
derive {w = add_wrapping(qty, 9223372036854775807), s = sub_wrapping(qty, 1), m = mul_wrapping(qty, qty)}In a plan:
{
"args": [
{
"col": 3
},
{
"lit": 1,
"type": {
"kind": "int64"
}
}
],
"fn": "sub_wrapping"
}