add_months
A Date or timestamp moved by b calendar months, the day clamped to the month's last (Jan 31 + 1 is Feb 28 or 29); a Timestamp in UTC.
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_months, over the example tables.
from orders
derive {next = add_months(day, 1), later = add_months(placed, 12)}In a plan:
{
"args": [
{
"col": 5
},
{
"lit": 1,
"type": {
"kind": "int64"
}
}
],
"fn": "add_months"
}