DECOMPRESS_STRING

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Decompresses the compressed BINARY input parameter to a string.

Syntax

DECOMPRESS_STRING(<input>, <method>)

Parameters

NameRequiredDescription
inputrequiredA BINARY value (or expression) with data that was compressed using one of the compression methods specified in COMPRESS.
methodrequiredThe compression method originally used to compress the input. See COMPRESS for a list of compression methods. The DECOMPRESS_STRING method, unlike the COMPRESS method, does not require you to specify the compression level. If you do specify the compression level, DECOMPRESS_STRING ignores it and uses the actual compression level.

Returns

A string with decompressed data.

Usage notes

See also

Referenced by