MAP_SIZE (Lakehouse v2)
Returns the number of key-value pairs in a map.
Analyze Syntax
Section titled “Analyze Syntax”func.map_size(get_column(table, 'map_col'))Analyze Examples
Section titled “Analyze Examples”func.map_size(MAP{'a':1,'b':2,'c':3})
┌───┐│ 3 │└───┘SQL Syntax
Section titled “SQL Syntax”MAP_SIZE(<map_col>)SQL Examples
Section titled “SQL Examples”SELECT MAP_SIZE(MAP{'a':1, 'b':2, 'c':3});
┌───┐│ 3 │└───┘