Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Applies to:
Databricks SQL
Databricks Runtime
Returns the union of all expr map expressions.
Syntax
map_concat([ expr1 [, ...] ])
Arguments
exprN: A MAP expression. AllexprNmust share a least common type.
Returns
A MAP of the least common type of exprN.
If no argument is provided, an empty map.
Azure Databricks raises DUPLICATED_MAP_KEY if there is a key collision across input maps.
Common error conditions
Examples
> SELECT map_concat(map(1, 'a', 2, 'b'), map(3, 'c'));
{1 -> a, 2 -> b, 3 -> c}
> SELECT map_concat(map(1, 'a'), map(1, 'b'));
Error: DUPLICATED_MAP_KEY