Skip to main content

transform

transform 介绍

transform(expr, func) - 使用函数对数组中的元素进行转换。

Examples:

> SELECT transform(array(1, 2, 3), x -> x + 1);
[2,3,4]
> SELECT transform(array(1, 2, 3), (x, i) -> x + i);
[1,3,5]

Since: 2.4.0