add
a + b, checked (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 add, over the example tables.
from orders
filter qty <= 9
derive {total = amount * 2, plus = qty + 1, net = amount - 1.50, cents = qty % 3, neg = -qty, absq = abs(qty)}In a plan:
{
"args": [
{
"col": 3
},
{
"lit": 1,
"type": {
"kind": "int64"
}
}
],
"fn": "add"
}