ryan_bell
07/22/2021, 3:10 PMaaronsteers
07/22/2021, 3:18 PMACTIVATE_VERSION
message feature - which is a Singer extension. By the tap sending an ACTIVATE_VERSION message along with a row version number. they signal the deactivation of records prior to a specific version number in the target.
Can you clarify one point in your requirement? Are you able to "see" which records are deleted in the upstream job? If yes, then a soft-delete flag would probably be preferable. If no, then even with the ACTIVATE_VERSION message feature, you may be forced into the equivalent of doing a full table extract each time, since that's the only way to actually identify which were present previously and are no longer present now.douwe_maan
07/22/2021, 3:46 PMACTIVATE_VERSION
: https://gitlab.com/meltano/meltano/-/issues/2508)ryan_bell
07/22/2021, 4:00 PMAre you able to "see" which records are deleted in the upstream job?I'm almost positive the answer to this is no, but let me see if I can find any additional information anywhere Thank you guys for such a quick response! I'll update the thread once I have more clarification on my side
ryan_bell
07/22/2021, 5:41 PMpablo_seibelt
07/22/2021, 6:28 PMselect *
from source_table
where _sdc_batched_at = (select max(_sdc_batched_at) from source_table)
Would that work for you? You don't even need dbt, you can just create such a view directly on SQLpablo_seibelt
07/22/2021, 6:29 PMaaronsteers
07/22/2021, 10:51 PM_sdc_
columns are documented here in the SDK docs: SDK Implementation Details - Record Metadata — Meltano SDK 0.3.3 documentation
Many taps and targets will support these columns, and they are helpful when provided. (Some targets actually have a setting to toggle whether you wnt them written or not.)aaronsteers
07/22/2021, 10:54 PMhassan_syyid
08/04/2021, 10:00 PMryan_bell
08/05/2021, 1:15 PMhassan_syyid
08/05/2021, 2:27 PMryan_bell
08/06/2021, 1:12 PMhassan_syyid
08/09/2021, 3:35 PMryan_bell
08/10/2021, 2:11 PMhassan_syyid
08/11/2021, 2:22 PM