TRANSFORM

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Transforms an array based on the logic in a lambda expression.

Syntax

TRANSFORM( <array> , <lambda_expression> )

Parameters

NameRequiredDescription
arrayrequiredThe array that contains the elements to be transformed. The array can be semi-structured or structured.
lambda_expressionrequiredA lambda expression that defines the transformation logic on each array element. The lambda expression must have only one argument specified in the following syntax:Copy code <arg> [ <datatype> ] -> <expr>

Returns

The return type of this function is a semi-structured or structured array of the lambda expression result. If either argument is NULL, the function returns NULL without reporting an error.

Usage notes

See also