See #591 for original details on this. At the standardisation layer (standarise_* functions) we want to ensure that the user can specify how to add / combine new data with currently existing data in the object store.
For the new if_exists input flag (within a standardise_* function) we want to implement a case for an "insert" option.
Previous data source, new data added, overlapping date range / replacement date range
if_exists="auto" (default)
Proposed: Returns helpful error, don't add (will be added through PR #831 )
if_exists="new" flag
Proposed: "Retire" ALL previous data to older version, create new stack just with new data (new version) (will be added through PR #831 )
if_exists="insert" flag / if_exists="combine" flag
Proposed: Replace overlapping date range - delete old, insert new (keep current version, "Retire" version with previous data but create new version with combination of "old" and "new" data).
Caveat: need to make sure NaN values and data just not being present is treated differently. NaN should be replaced and then dropped rather than just ignored. This may need to be addressed at the parse_* function level.
What is your issue?
See #591 for original details on this. At the standardisation layer (
standarise_*
functions) we want to ensure that the user can specify how to add / combine new data with currently existing data in the object store.For the new
if_exists
input flag (within astandardise_*
function) we want to implement a case for an "insert" option.if_exists="auto"
(default)if_exists="new"
flagif_exists="insert"
flag /if_exists="combine"
flag