We can learn how to do this by looking at this project:
https://github.com/sunchao/parquet-rs
GitHub Pull Request #1942