Changes to make Parquet writer work