GUNZIP
Decompresses gzip data. If the archive contains multiple files, their contents are joined into one string. The total decompressed size must be under 100 MB.
Categories: Data Parsing/Conversion
Syntax
GUNZIP(compressed_file_data)
Examples
Example 1: Decompress a Base64-encoded gzip file
Input
1
{
2
"my_action": {
3
"compressed": "H4sIAAAAAAAAA8tIzcnJVyjPL8pJAQCFEUoNCwAAAA=="
4
}
5
}
Formula
GUNZIP(BASE64_DECODE(my_action.compressed))
Output
"hello world"
Example 2: When the archive contains multiple files, their contents are joined into one string
Input
1
{
2
"my_action": {
3
"compressed": "H4sIAAAAAAAAA0vLLCouUUjLzEnlAgDfMNv0CwAAAB+LCAAAAAAAAAMrTk3Oz0tRSMvMSeUCAIL/cuQMAAAA"
4
}
5
}
Formula
GUNZIP(BASE64_DECODE(my_action.compressed))
Output
"first file\nsecond file\n"