📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

MAP_SIZE



Returns the size of a MAP.

Syntax

MAP_SIZE( <map> )

Arguments

ArgumentsDescription
<map>The input map.

Return Type

UInt64.

Examples

SELECT MAP_SIZE({'a':1,'b':2,'c':3}); ┌───────────────────────────────┐ │ map_size({'a':1,'b':2,'c':3}) │ ├───────────────────────────────┤ │ 3 │ └───────────────────────────────┘

Was this page helpful?