Updated on 2024-08-19 GMT+08:00

Value Construction Functions

Description

Table 1 Value construction functions

Value Construction Function

Description

-- implicit constructor with parenthesis (value1 [, value2]*)

Returns a row created from a list of values (value1, value2, ...). The implicit row constructor supports any expression as a field, but requires at least two fields. The explicit row constructor can handle any number of fields, but currently does not support all types of field expressions well.

ARRAY '[' value1 [, value2 ]* ']'

Returns an array created from a list of values (value1, value2, ...).

MAP '[' value1, value2 [, value3, value4 ]* ']'

Returns a map created from a list of key-value pairs ((value1, value2), (value3, value4), ...).