MAP_SIZE

Returns the number of key-value pairs in a map.

Analyze Syntax

func.map_size(get_column(table, 'map_col'))

Analyze Examples

func.map_size(MAP{'a':1,'b':2,'c':3})

┌───┐
 3 
└───┘

SQL Syntax

MAP_SIZE(<map_col>)

SQL Examples

SELECT MAP_SIZE(MAP{'a':1, 'b':2, 'c':3});

┌───┐
 3 
└───┘