transform_keys
function
Applies to: Databricks SQL Databricks Runtime
Transforms keys in a map in expr
using the function func
.
Returns
A MAP where the keys have the type of the result of the lambda functions and the values have the type of the expr
MAP values.
The lambda function must have 2 parameters. The first parameter represents the key. The second parameter represents the value.
The lambda function produces a new key for each entry in the map.