pick_fields(column: object, [key: const string]+) -> object

Pick one or more fields from an object.

Domain

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

Categories

Examples

make_col smaller:pick_fields(obj, 'key1', 'key2')

Create a column 'smaller' based on column 'obj' only containing 'key1' and 'key2' if existing.