pub fn transform<W: Write + Send + 'static>(
    f: impl Read + Seek,
    out: W,
    repack: &mut Repack,
    rg_filter: impl FnMut(usize, &RowGroupMetaData) -> LoopDecision
) -> Result<W>