Reputation: 245
I want to be able to reset a JDBC data sync from source if something goes wrong. Ideally, replacing the last N days of data.
I'd prefer not to have multi-step process involving editing the SQL query itself.
I tried disabling incremental mode, but this doesn't clear out the old data.
In code repositories, I can increase the semantic_version
number to cause data to refresh.
Another angle to take could be to rollback to a previous version of the dataset, and then rerun the sync - but there doesn't seem to be a way to do this in the Foundry GUI.
How can this be done for an incremental data sync?
Upvotes: 0
Views: 299
Reputation: 245
Doing an ad-hoc snapshot build with an incremental data-sync is currently an 8 step process.
Make these changes to the data sync:
WHERE 1=0
.Then save and build to clear out the dataset.
Reverse the changes to get back to incremental mode, then save and build.
Upvotes: 1
Reputation: 1399
One solution is to turn off incremental mode on the Sync, run a snapshot build, and then turn incremental mode back on for the subsequent builds.
Sticking to what is available in the UI, indeed you can't "rollback" to a specific version of the dataset.
Upvotes: 0