PARQUET-24: port changes form parquet_mr