Ryan Taylor
03/01/2023, 8:36 PMRyan Taylor
03/02/2023, 6:11 PMNataly Merezhuk (Airbyte)
03/02/2023, 9:23 PMRyan Taylor
03/08/2023, 5:18 PMRyan Taylor
03/08/2023, 6:23 PMnew_data as (
-- retrieve incremental "new" data
select
*
from "AIRBYTE_TEST"._AIRBYTE_LANDING_ZONE."SRC_MEMBERCLAIM_STG"
-- SRC_MEMBERCLAIM from "AIRBYTE_TEST".LANDING_ZONE._AIRBYTE_RAW_SRC_MEMBERCLAIM
where 1 = 1
and cast(_AIRBYTE_EMITTED_AT as
timestamp with time zone
) >=
cast('2023-03-06 16:07:31.849000-06:00' as
timestamp with time zone
)Ryan Taylor
03/08/2023, 6:33 PMRyan Taylor
03/08/2023, 8:02 PMRyan Taylor
03/08/2023, 9:29 PMselect max(_AIRBYTE_EMITTED_AT)
from airbyte_test.landing_zone.src_memberclaim_scd
;Ryan Taylor
03/09/2023, 2:21 PMNataly Merezhuk (Airbyte)
03/09/2023, 2:21 PMNataly Merezhuk (Airbyte)
03/09/2023, 2:24 PM_airbyte_emitted_at date is taken from the destination table. This is achieved by extracting the largest _airbyte_emitted_at value from the destination table and only selecting records for normalization from the raw table that have an _airbyte_emitted_at value that is greater than or equal to this value.
For more information, take a look at the Airbyte documentation.
Let me know if this helps!