Extracts the values from a given MAP into an ARRAY of the corresponding type.
MAP_VALUES(<map>)
<map> MAP type, the input map content.Extracts the values from a given map into an ARRAY of the corresponding type.
Regular parameters
select map_values(map()), map_values(map(1, "100", 0.1, 2, 0.3, null));
+-------------------+----------------------------------------------+ | map_values(map()) | map_values(map(1, "100", 0.1, 2, 0.3, null)) | +-------------------+----------------------------------------------+ | [] | ["100", "2", null] | +-------------------+----------------------------------------------+
NULL parameters
select map_values(null);
+------------------+ | map_values(null) | +------------------+ | NULL | +------------------+