Closed mobb closed 6 years ago
options:
related to #9
Unique primary keys can be created during the aggregation step. At this point each ecocomDP will have a data package identifier that can be concatenated with an abbreviated primary key name and primary key value (this is essentially option 1 above).
An example of this is: knb-lter-hrf.118.28_obs_1107, where obs denotes observation_id and 1107 is the observation.
colin - I will add "creating a PK function' to our list of functions (creation functions, not aggregation). that way there can be some consistency between tables.
validate_primary_keys
checks for unique primary keys within an L1, and has been added to the battery of validation tests in validate_ecocomDP
. Globally unique primary keys will have to be created for L1 aggregation within the aggregation function (not yet written).
we need to make sure they will be unique when many datasets are being put together for an analysis.