Transforms
Transform step: forward_fill
Carries the last non-null value forward per partition and order.
Used inside a transform's steps list as type: forward_fill. See Transforms for the full model.
Each filled column adds _ff{name}_original_value (value before forward fill) and _ff{name}_forward_filled (true when filled). Rename or drop via select/rename.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
name (required) | string | - | - |
type | forward_fill | - | - |
order_by (required) | array of string | - | - |
partition_by | array of string | - | - |
columns (required) | array of object | - | - |
columns[].name (required) | string | - | - |
columns[].default | string or number or boolean or null | - | - |
columns[].history | object | - | - |
columns[].history.from (required) | string | - | - |
columns[].history.column (required) | string | - | - |
columns[].history.order_by (required) | array of string | - | - |
columns[].history.partition_by | array of string | - | - |
state | object | - | Managed cross-batch state for the forward_fill step. Storage is configured at deployment time and is not exposed here. |
state.enabled | boolean | - | Defaults to true. Set false to opt out of managed state for this step. |
state.late_arrival | object | - | Out-of-order tolerance. Set when records may arrive after their event time. |
state.late_arrival.column (required) | string | - | Input column that carries the event time, e.g. 'ts'. |
state.late_arrival.max_latency (required) | string | - | Maximum delay after 'column' the engine will accept before treating a record as too late, e.g. '10 minute', '1 hour', '1 day'. Used as the watermark grace in streaming. |
Required: name, order_by, columns.
Minimal example
A forward_fill step inside a transform:
Code
Related pages
Last modified on