Skip to main content

Decompress

Decompresses the byte stream with the chosen algorithm and delegates the decompressed bytes to a child scanner. Stack this on top of any other scanner to read compressed sources: .csv.gz, .json.zst, .tar.bz2, and so on.

FieldTypeDefaultDescription
AlgorithmenumgzipOne of gzip, pgzip, zlib, bzip2, flate, snappy, lz4, zstd
IntoscannerTo The EndThe child scanner that consumes the decompressed bytes

Algorithm cheat sheet

AlgorithmTypical file extensions
gzip, pgzip.gz, .tgz
zlib, flateraw zlib/deflate streams
bzip2.bz2
snappy.sz, .snappy
lz4.lz4
zstd.zst, .zstd