- Is this your first time deploying Airbyte?: Yes
- OS Version / Instance: Amazon Linux
- Memory / Disk: t3a.2xlarge
- Deployment: Docker
- Airbyte Version: 0.40.7
- Source name/version: source-postgres 1.0.10
- Destination name/version: destination-snowflake 0.4.36
- Step: The issue is happening creating the connection and selecting how to replicate
- Description: When configuring the replication between postgres and snowflake only a few of the tables have an option for incremental sync.
Check the database table directly. The tables have valid cursor and primary keys.
order_pkey" PRIMARY KEY, btree (id
updated_at | timestamp without time zone | | | | plain
checking the logs i see it sees pkeys and but no cursor values.
{âsyncModeâ:âfull_refreshâ,âcursorFieldâ:,âdestinationSyncModeâ:âappendâ,âprimaryKeyâ:[[âidâ]]
I understand with postgres you have to select it, and it will not auto populate but the ui doesnât have the option and does not show any pkey eitherâŚ
A handful of tables have the option while most do not.
Any help would be much appreciated!
EDIT:
Iâve tried setting this up on multiple other databases. Postgres: 12.8/13.7/13.4/14.3. And it works as expected⌠The issue seems specific to most of the tables in this database but Iâm not sure whatâŚ
Digging into it some more i found a few tables that are supported in the db without issues⌠trying to find out what is different between the tables that have the incremental option and the ones that donât.
Adding 2 config outputs for a tables that has the incremental option and one that does not in the db.
test_a.txt (3.6 KB)
test_b.txt (2.0 KB)
test_a â only full refresh options
test_b â has both options.
Logs when trying to load the schema and set replication for each streamâŚ
Both of these tables have primary keys and valid cursors⌠so again not sure why one can have incremental and the other can not.
After this further digging my questions is, is there some requirement for incremental replication other than having a pkey and valid cursor for it to appear as an option in the UI. Trying to understand what allows one table to replicate incrementally vs the otherâŚ
Another Edit:
https://github.com/airbytehq/airbyte/pull/14356
DB Sources: only show a table can sync incrementally if at least one column can be used as a cursor field
So it seems this is probably the reason i donât see them, but then iâm still trying to figure out why it does not think there is a valid field, when based on the above configs it seems, there are valid fields?
Last Edit: yes it seems to be an option now and working.
Thanks