MAP_KEYS (Lakehouse v1)
Returns the keys in a map.
SQL Syntax
Section titled “SQL Syntax”MAP_KEYS( <map> )Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<map> | The input map. |
Return Type
Section titled “Return Type”Array.
SQL Examples
Section titled “SQL Examples”SELECT MAP_KEYS({'a':1,'b':2,'c':3});
┌───────────────────────────────┐│ map_keys({'a':1,'b':2,'c':3}) │├───────────────────────────────┤│ ['a','b','c'] │└───────────────────────────────┘