MAP_ENTRIES
Description
The MAP_ENTRIES
function is used to convert input data of Map type into an array, where each element in the array is a struct that contains two fields corresponding to the key and value in the Map.
Syntax
Parameters
map
: Input Map type data, whereK
represents the type of the key, andV
represents the type of the value.
Return Result
Returns an array, where each element in the array is a struct containing two fields: key
and value
, corresponding to the key and value in the Map respectively.
Example
- Basic usage:
Return Results:
- Use in conjunction with other functions:
Return Results:
- Nested Map Conversion:
Return Results: