Skip to content

Applies a lambda expression to transform the values of a map.

func.transform_values(get_column(table, 'map_col'), lambda k, v: v * 10)
func.transform_values(MAP{'a':1,'b':2}, lambda k,v: v*10)
┌─────────────────┐
│ {'a':10,'b':20} │
└─────────────────┘
TRANSFORM_VALUES(<map_col>, lambda k, v: v * 10)
SELECT TRANSFORM_VALUES((k, v) -> v * 10, MAP{'a':1, 'b':2});
┌─────────────────┐
│ {"a":10,"b":20} │
└─────────────────┘