Resolve current content hashes for auxiliary measures from the aux catalog
get_aux_hashes.RdQueries the "aux" stamp catalog once and returns the current
content_hash for each requested auxiliary measure. Each measure is
matched to exactly one catalog artifact whose path basename is
<measure>.qs2 (e.g. cpi.qs2, ppp.qs2, pfw.qs2).
Usage
get_aux_hashes(
aux_measures,
verbose = getOption("pipdata.verbose", default = TRUE)
)Value
A named character vector of content_hash values, one per
requested measure. Names are the measure names.
Details
This is the single source of the current aux hashes used to gate
aux-change detection in valid_dlw_load(). It must be called once per
pipeline run, before aux data is loaded, and the result passed through
the run so that the hashes recorded in the master inventory match the
aux data actually used.
The function aborts loudly when the "aux" alias is unavailable, a
requested artifact is missing, or multiple catalog rows match a measure.
It never falls back to stamp::st_latest() or to hashing loaded aux
tables.
Precondition: the "aux" catalog and pipload::load_aux_data() must
resolve through the same configured working release and storage root. The
hashes returned here are only meaningful if the aux data subsequently
loaded for processing comes from the same artifacts. Callers must ensure
the working release is set up consistently before calling this function.
See also
Other pd_process_data pipeline:
add_attr(),
aux_hash_candidates(),
build_pip_inventory(),
create_attr(),
data_to_dt(),
filter_aux_data(),
filter_aux_inv(),
fix_year_var(),
inv_dlw_load(),
inv_to_process(),
log_report(),
pd_aux_attr(),
pd_deflation(),
save_pip_data(),
survey_id_to_attr(),
valid_dlw_load()