API reference
python:irx:irx.record_batch.RecordBatchBuilder.append_struct
method append_struct
append_struct(col: int, values: Mapping[str, Any] | Sequence[Any]) -> None
Source: packages/irx/src/irx/record_batch.py:1330
Append one struct slot to a struct column.
values gives one value per field, either as a mapping keyed by field name or as a positional sequence in field order. Temporal fields accept datetime.date/datetime/time objects or raw storage ints; numeric fields accept plain numbers. Use append_null(col) for a null struct slot.
Parameters
-
col — Source column or column selector.; Type: int
-
values — Values to process, in order.; Type: Mapping[str, Any] | Sequence[Any]
Returns
Type: None