Hi everyone, I'm testing Postgres to Postgres syn...
# announcements
c
Hi everyone, I'm testing Postgres to Postgres syncing with Incremental - Append using docker-compose on my computer: https://docs.airbyte.io/deploying-airbyte/on-your-workstation. I'm getting the following error on every sync attempt (full log attached):
Copy code
2021-01-20 19:55:26 ERROR (/tmp/workspace/7/0) LineGobbler(voidCall):69 - Exception in thread "main" java.lang.NullPointerException
Any thoughts?. Am I missing something?
s
hey carlos, what did you set as the cursor field for the incremental sync on your tables?
and is that field populated in every record in your table?
c
looks like this happens when the selected cursor field isn't present in a record.
i can fix the NPE.
but ultimately this incremental sync is unlikely to work the way you expect it to.
i don't know what field you're using as a cursor but let's assume it's updated_at. so if a record is written and doesn't have an updated_at value the behavior around what records get sync is weird.
lmk if any of this doesn't make sense.
also if you think we're missing a use case here, i'm happy to discuss!
c
I’m using a
timestamptz
column as a cursor. It seems all the records have that value set.
c
can we sanity check that to just remove it as a possibility?
Copy code
SELECT COUNT(*) FROM <table-name> WHERE <column-name> IS NULL;
c
That’s exactly the test I ran 😉
c
huh. weird!
i'm not sure then. i'm happy to take a closer look, but probably can't do so until later today or tomorrow morning.