GZIPアルゴリズムを使用してbinを解凍します。
構文
binary decompress(binary <bin>)パラメーター
bin: 必須です。 BINARY型の値。
戻り値
BINARY型の値が返されます。 入力パラメーターがnullに設定されている場合、nullが返されます。
例
例1: 文字列
hello, worldの圧縮結果を解凍し、解凍結果を文字列に変換します。 例:-- The return value is hello, world. select cast(decompress(compress('hello, world')) as string);例2: 入力パラメーターがnullに設定されています。 例:
-- The return value is null. select decompress(null);
関連関数
詳細については、「」をご参照ください。その他の関数.