pub fn write_table_zstd(path: &Path, batch: &RecordBatch) -> Result<()>Expand description
The same file, ZSTD-compressed per buffer.
Only for the cold tier (section 11): a compressed block cannot be read out of its mapping, so this trades the zero-copy property for bytes. The retention worker applies it to blocks old enough that nothing is scanning them, which is where the trade is free.
The reader needs no flag — the IPC metadata records the codec per batch, so a directory can hold both tiers at once and does, mid-rewrite.