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

generic array

Domain

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

Categories

Usage

append_item(arr, val_1, val_2, ...)

Argument

Type

Optional

Repeatable

Restrictions

arr

array

no

no

none

val

storable

no

yes

none

Examples

make_col foo:append_item(array, 'imp')

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