MAP_SIZE (Lakehouse v1)
Returns the size of a MAP.
SQL Syntax
Section titled “SQL Syntax”MAP_SIZE( <map> )Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<map> | The input map. |
Return Type
Section titled “Return Type”UInt64.
SQL Examples
Section titled “SQL Examples”SELECT MAP_SIZE({'a':1,'b':2,'c':3});
┌───────────────────────────────┐│ map_size({'a':1,'b':2,'c':3}) │├───────────────────────────────┤│ 3 │└───────────────────────────────┘