map_values
function
Applies to: Databricks SQL Databricks Runtime
Returns an unordered array containing the values of map
.
Syntax
map_values(map)
Arguments
map
: A MAP expression.
Returns
An ARRAY where the element type matches the map
value type.
Examples
> SELECT map_values(map(1, 'a', 2, 'b'));
[a,b]
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for