make_fields(column: object, [entries: expression]+) -> object

Extend an existing object with new fields.

If one of the keys passed to make_fields already exists in the object, that key's old value will be overwritten by the value passed into make_fields.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col larger:make_fields(obj, key1:'value1', key2:'value2')

Create a column 'larger' based on column 'obj' with two key value pairs added (existing fields with the same name will be replaced).