Generating Parquet schema from a table

Has anyone ever attempted to generated a parquet file schema definition from a table using a macro or other mechanism?