Skip to main content

is_current_format

Function is_current_format 

Source
pub(crate) fn is_current_format(reader: &SerializedFileReader<File>) -> bool
Expand description

Returns whether a file already uses the current archive format.

A file is current when it has at least one row group and every row group has exactly two columns, both zstd-compressed, with the timestamp column (column 0) using DELTA_BINARY_PACKED encoding. Only the footer metadata is inspected; no data pages are read.

A file with no row groups is never current; recompress_file reports it as Outcome::Empty before calling this.

ยงArguments

  • reader - Open reader for the file.