Skip to main content
Returns the union of the input maps. If a key is found in multiple maps, this function keeps only the last value among these maps, called LAST WIN. For example, SELECT map_concat(map{1:3},map{1:'4'}); returns {1:"4"}. This function is supported from v3.1 onwards.

Syntax

Parameters

any_mapN: the map values you want to union. All maps must share a common type. If data types of the input maps are not the same, the return type is the common supertype of the input maps.

Return value

Returns a MAP of the common supertype of the input maps.

Examples