append_item

Description

Returns an array containing all elements from the source array as well as the new element. The new element is located at end of the array.

Return type

array

Domain

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

Categories

Usage

append_item( arr, val ... )

Argument

Type

Required

Multiple

arr

array

Required

Only one

val

variant

Required

Can be multiple

Examples

make_col foo:append_item(array, 'imp')

Make the column ‘foo’ by appending array field foo with ‘imp’.