fn write_cols<W: Write>( writer: &mut BatchedWriter<W>, rec_ids: &mut Vec<u32>, values: &mut Vec<String>, val_name: &str ) -> Result<usize>