This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
Cannot add more tables to existing postgres->snowflake log based extract #192
Labels
bug
Something isn't working
Describe the bug
I'm using log based replication with:
Initially I selected just a few tables in postgres. This worked as expected. Later, I tried to select more of the postgres tables. When I did this, it did a full table sync (
logical_initial
) for the new tables, which was expected. However, the state for these new tables is not emitted, and every time I run after that, it once again does a full table sync. The new tables never use log based replication.I found this bug when running using meltano, but confirmed it using a standalone singer job.
To Reproduce
Steps to reproduce the behavior:
Create a test postgres database with a couple of tables:
Create config files for the tap and target, for example:
tap_config.json
target_config.json
Install the tap and create
catalog.json
Install the target
Do the initial run
Second run to show that "public-a" is now using log based replication
Add a new table to the selected tables and run again
You'll see this in the logs:
Later, the target will show the expected state:
However, then it moves on to reading from the replication slot for the existing table(s). After that's done, the state has "lost" the new table:
Unfortunately, this is the state that gets emitted:
Because of this, the next time you run, it'll start with the "logical_initial" full table sync again for the new table, and every time you run after that as well.
Expected behavior
The state for
public-b
should be emitted by the target.Screenshots
If applicable, add screenshots to help explain your problem.
Your environment
Additional context
From this slack thread, it sounds like this may not be encountered when running using pipelinewise, since "FastSync" is used for the initial sync.
The text was updated successfully, but these errors were encountered: