Mirror ff7427f from github.com/open-reaction-database/ord-data
Browse files
README.md
CHANGED
|
@@ -407,9 +407,11 @@ side of the workflow still runs.
|
|
| 407 |
|
| 408 |
### Converting datasets to Parquet
|
| 409 |
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
with [`scripts/convert_to_parquet.py`](scripts/convert_to_parquet.py).
|
|
|
|
|
|
|
| 413 |
script globs every `data/**/*.pb.gz`, merges the known de-shard groups (the
|
| 414 |
`uspto-grants-YYYY_MM` monthly buckets and the `C8SC04228D` shards) into single
|
| 415 |
outputs, converts everything else 1:1 (carrying the existing `dataset_id`), and
|
|
|
|
| 407 |
|
| 408 |
### Converting datasets to Parquet
|
| 409 |
|
| 410 |
+
New submissions are written as Parquet, the standard format. Older datasets are
|
| 411 |
+
stored as `.pb.gz`; most already have a Parquet sibling, and the rest are
|
| 412 |
+
backfilled with [`scripts/convert_to_parquet.py`](scripts/convert_to_parquet.py).
|
| 413 |
+
Editing an existing `.pb.gz` leaves it as `.pb.gz` — converting the corpus is
|
| 414 |
+
this script's job, not a side effect of changing one dataset. The
|
| 415 |
script globs every `data/**/*.pb.gz`, merges the known de-shard groups (the
|
| 416 |
`uspto-grants-YYYY_MM` monthly buckets and the `C8SC04228D` shards) into single
|
| 417 |
outputs, converts everything else 1:1 (carrying the existing `dataset_id`), and
|