将bin按照GZIP算法进行解压。
命令格式
binary decompress(binary <bin>)
参数说明
bin:必填。BINARY类型。
返回值说明
返回BINARY类型。输入参数为NULL时,返回结果为NULL。
使用示例
- 示例1:对字符串
hello, world
的压缩结果进行解压并转换为字符串格式。命令示例如下。--返回hello, world。 select cast(decompress(compress('hello, world')) as string);
- 示例2:输入参数为NULL。命令示例如下。
--返回NULL。 select decompress(null);