Stéphane Burwash
11/22/2023, 7:48 PMget_starting_timestamp
function only retrieves the state from the context while disregarding the replication method, while the replication method only affects if the replication signpost is stored.
Therefore, a stream which has gone from incremental to full table would need to get it's state wiped in order to function properly with the get_starting_timestamp
function.
@edgar_ramirez_mondragon would you be able to confirm?edgar_ramirez_mondragon
11/22/2023, 8:06 PMget_starting_timestamp
will use state regardless of the replication method.
I'm curious if you changed the replication method in-code, or via the catalog?
If the former, then you should be able to remove calls to get_starting_timestamp
so state is no longer used for that stream. If the latter, then you have to manually remove the stream's bookmark from the state.
Also, it's arguably a bug as is but I'm not sure if we should make get_starting_timestamp
a no-op (with a warning logged) if the replication method is not full-table.Stéphane Burwash
11/22/2023, 8:09 PMECS exec
operation (we're on ECS fargate)edgar_ramirez_mondragon
11/22/2023, 8:37 PMget_starting_timestamp
always return null values for full-table streams 🙂edgar_ramirez_mondragon
11/23/2023, 6:16 PMStéphane Burwash
11/23/2023, 6:29 PM