Three checks per table of a catalog.json, supplemental tables included (4.38.0):
Usage
check_release_objects(
catalog,
con = NULL,
base_url = "https://storage.googleapis.com/calcofi-db",
tables = NULL
)Arguments
- catalog
a parsed
catalog.json(list, asjsonlite::fromJSON(..., simplifyVector = FALSE)returns it, or a data-frame form).- con
optional DuckDB connection able to read
base_url(httpfs loaded for https); without itpublished_rowsis not checked.- base_url
where the catalog's bucket-relative
paths resolve.- tables
optional subset of table names.
Details
unique_paths: no object path is listed twice;one_object_per_partition: a partitioned table has one object per partition value (and at most one single-file twin, an object without a partition value holding every row, asobspublishes), a single-file table exactly one object;published_rows(only withcon): the rows in the parquet footers of the table's distinct partition objects, read where they are published (no scan), sum to the catalog'srows, and so do a twin's.
v2026.11.05 and v2026.11.09 failed all three for obs_ctd_full: 169 objects for
143 cruises, 24 paths listed 2 or 3 times, and 240,092,665 published rows against
a catalog rows of 287,281,956, because the export wrote some partitions as two or
three files and the uploads overwrote each other (see export_release_parquet()).