pick_fields

Description

Pick one or more fields from an object.

Return type

object

Domain

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

Categories

Usage

pick_fields( column, key ... )

Argument

Type

Required

Multiple

Constant

column

object

Required

Only one

Variable

key

string

Required

Can be multiple

Constant

Examples

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

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