STRIP_NULL_VALUE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Converts a JSON null value to a SQL NULL value. All other variant values are passed unchanged.

Syntax

STRIP_NULL_VALUE( <variant_expr> )

Parameters

NameRequiredDescription
variant_exprrequiredAn expression of type VARIANT.

Returns

- If the expression contains a JSON null value, the function returns a SQL NULL. - If the expression does not contain a JSON null value, the function returns the input value.