decompress_catalog_snapshot

Function decompress_catalog_snapshot 

Source
fn decompress_catalog_snapshot(
    compressed_path: &Path,
    output_path: &Path,
) -> Result<()>
Expand description

Decompresses a Zstandard-compressed catalog snapshot into output_path.

The file is streamed through a buffered writer and then flushed and synced so a successful return means the temporary output is fully materialized on disk.

ยงErrors

Returns an error if the compressed input cannot be opened, if the decoder cannot be created, if the output file cannot be created, if decompression or flushing fails, or if the output file cannot be synced.