LSSTDESC / DC2-production

Configuration, production, validation specifications and tools for the DC2 Data Set.
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Produce `_common_metadata` and `_metadata` for parquet data sets #418

Open yymao opened 3 years ago

yymao commented 3 years ago

As @cwwalter mentioned, having _common_metadata and _metadata in the parquet file folder can potentially speed up load time for dask and spark.

We should be able to add the steps to generate these metadata files in write_gcr_to_parquet.py. Alternatively, we can write a post-processing script to generate those files (could be useful for existing datasets).

Ref: https://arrow.apache.org/docs/python/generated/pyarrow.parquet.write_metadata.html