<#2461 Warn/fail when incremental replication is u...
# meltano-repo-activity
g
#2461 Warn/fail when incremental replication is used with a target that appends instead of upserts Issue created by MeltyBot Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2506 Originally created by @DouweM on 2021-01-12 222657 --- As I wrote in Slack in response to the conversation that led to the creation of https://gitlab.com/meltano/meltano/-/issues/2504:
>>
Meltano should warn users when they attempt to use incremental replication with a target that doesn't actually support it correctly, which starts with specifying in our discoverable plugin definitions (https://meltano.com/docs/contributor-guide.html#discoverable-plugins) whether a target supports incremental replication. Meltano would then detect whether incremental replication is used (read: whether we're passing a state file to the tap) and fail hard if the target doesn't support it, and suggest the user use full-table replication instead, or a different target. Meltano could also detect this and simply fall back on full-table replication, although this wouldn't actually be better with append-only formats like CSV and JSONL, or targets that wouldn't wipe the existing data before inserting new records. Some targets support
ACTIVATE_VERSION
(https://meltano.slack.com/archives/CFG3C3C66/p1601148878022700?thread_ts=1600699540.015800&cid=CFG3C3C66) which we may also be able to pay special consideration to.
>>
This requires us to not just document which targets append instead of upsert (https://gitlab.com/meltano/meltano/-/issues/2505), but also track this in `discover.yml`: https://gitlab.com/meltano/meltano/-/issues/2507 meltano/meltano