Юлия Герман
03/07/2024, 9:49 AMEdgar Ramírez (Arch.dev)
03/07/2024, 7:46 PMЮлия Герман
03/07/2024, 8:36 PMЮлия Герман
03/07/2024, 8:44 PMif job_id returns true
and no activate_version_message will be send.
Could you help me to understand where I can set jobId for tap-salesforce?😊Юлия Герман
03/07/2024, 8:51 PMEdgar Ramírez (Arch.dev)
03/07/2024, 8:51 PM{
"bookmarks": {
"<your-stream-id>": {
"JobID": "<your-job-id>"
}
}
}
but I wouldn't know what value to set it to https://github.com/MeltanoLabs/tap-salesforce/blob/64ca3f9780fb8a5c8a978a6e0aa484d0bdc086b3/tap_salesforce/__init__.py#L91-L93Edgar Ramírez (Arch.dev)
03/07/2024, 8:51 PMEdgar Ramírez (Arch.dev)
03/07/2024, 8:52 PMhard_delete: false
in your loader configЮлия Герман
03/07/2024, 8:53 PMЮлия Герман
03/07/2024, 8:54 PMЮлия Герман
03/07/2024, 8:55 PM{"bookmarks": {"<your-stream-id>": {"JobID": "<your-job-id>"}}}
. How I can add it in yaml config?Edgar Ramírez (Arch.dev)
03/07/2024, 8:57 PMif I set hard_delete: false, all previous version will be removed, right?No, it will do an upsert: https://github.com/meltano/sdk/blob/bfc1bc1e34ed4c6a81feee2b697d3799b780cf7e/singer_sdk/sinks/sql.py#L404-L409
Edgar Ramírez (Arch.dev)
03/07/2024, 8:58 PMHow to set it manually,Can't add it directly in meltano.yml, but you can put it in a json file and reference it with https://docs.meltano.com/concepts/plugins/#state-extra. How I can add it in yaml config?{"bookmarks": {"<your-stream-id>": {"JobID": "<your-job-id>"}}}
Юлия Герман
03/07/2024, 9:01 PMEdgar Ramírez (Arch.dev)
03/07/2024, 9:03 PMЮлия Герман
03/07/2024, 9:03 PMЮлия Герман
03/07/2024, 9:10 PMЮлия Герман
03/07/2024, 9:22 PMhard_delete: false
- it is default behaviour https://github.com/meltano/sdk/commit/a79cff8c94d8780353b620060eb5931f1ba91babEdgar Ramírez (Arch.dev)
03/07/2024, 10:04 PMhard_delete: false
- it is default behaviour
That change was shipped in singer-sdk v0.35.0
but target-snowflake is at an older versionEdgar Ramírez (Arch.dev)
03/07/2024, 10:06 PMbtw, if we already have state in db, would it be merged anyhow or state from db will be ignored?If you have state in the db, you could try using the
meltano state
command. See the meltano state --help
for options. You probably want to send meltano state get
output to a file, followed by editing the file manually, followed by meltano state set
Юлия Герман
03/08/2024, 12:16 PMEdgar Ramírez (Arch.dev)
03/08/2024, 2:51 PMЮлия Герман
03/08/2024, 2:59 PMEdgar Ramírez (Arch.dev)
03/08/2024, 3:00 PMЮлия Герман
03/08/2024, 3:00 PMЮлия Герман
03/08/2024, 3:05 PMendpoint = "job/{}/batch/{}/result".format(job_id, batch_id)
Edgar Ramírez (Arch.dev)
03/08/2024, 3:10 PMget_batch_results
https://github.com/MeltanoLabs/tap-salesforce/blob/64ca3f9780fb8a5c8a978a6e0aa484d0bdc086b3/tap_salesforce/salesforce/bulk.py#L115
which among other things generates the api endpointЮлия Герман
03/08/2024, 3:15 PMbatch_status['state'] == 'Failed':
, right?Юлия Герман
03/08/2024, 4:02 PMEdgar Ramírez (Arch.dev)
03/08/2024, 4:19 PMЮлия Герман
03/08/2024, 4:26 PMЮлия Герман
03/08/2024, 4:29 PMEdgar Ramírez (Arch.dev)
03/08/2024, 4:46 PMif not replication_key or bookmark_is_empty:
Юлия Герман
03/08/2024, 4:51 PMЮлия Герман
03/08/2024, 4:55 PMЮлия Герман
03/08/2024, 5:15 PMEdgar Ramírez (Arch.dev)
03/08/2024, 8:01 PMЮлия Герман
03/10/2024, 2:12 PMEdgar Ramírez (Arch.dev)
03/11/2024, 5:29 AM