Skip to main content
Creates a MAP value from the given pair of key item array and value item array. This function is supported from v3.1 onwards.

Syntax

Parameters

  • keys: uses to construct the keys of the result MAP. Make sure the elements of keys are unique. The elements cannot be of the BITMAP, HLL, or PERCENTILE type, or contain these types.
  • values: used to construct the values of the result MAP.

Return value

Returns a MAP that is constructed from the input keys and values.
  • Keys and values must have the same length, otherwise it will return an error.
  • If key or value is NULL, this function returns NULL.
  • The returned MAP value has distinct keys.

Examples