-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
primary_key incorrect - causes failures in target-postgres, and target-snowflake (probably more) #18
Comments
Could you post the error you're getting from target-postgres? |
Added the error messages to the issue |
One of the errors is due to: https://github.com/AutoIDM/tap-googleads/blob/main/tap_googleads/streams.py#L81
The other is due to: https://github.com/AutoIDM/tap-googleads/blob/main/tap_googleads/streams.py#L32
|
I'm getting a very similar error with
which pretty much immediately follows this log:
This, to me, indicates that the issue is not that the primary key is wrong but that the primary key is located inside of a |
Let me know if this doesn't' work now and I'll reopen this! |
Thanks a bunch to @jlloyd-widen |
Was this fixed? Because I still get the same error:
and then
|
As the tap stands there are a couple of issues when using
target-postgres
, both variant Meltano and Transferwise.1. Using
target-postgres
causing errors.Meltano variant of
target-postgres
results in apsycopg2
error ofUndefinedColumn
, as it unpackages the json objects with different names to the expected.Transferwise variant errors out with
key_properties field is required
.The work around in my use case was to remove
primary_keys
all together (to have it work with multipletarget-postgres
variants), but realise that isn't a great solution, and not suitable in general.target-postgres Transferwise error
target-postgres Meltano error
2. If you do delete the primary keys, then use the Meltano variant of
target-postgres
you only get your last synced customer data.Using the Meltano variant seems to make it so each time a customer's data is looped and added to the postgres table, that the table is just completely re-created, so you only ever get the last customers data. Also when the tap loops through the customers, all the postgres tables are created over and over for each customer.
I didn't end up looking too much into this issue, and it could be a more of a loader issue rather than tap, but I've never run into the loader behaving like this before so thought I mention it.
For us, we use the Meltano variant of target-postgres for some other reasons by default, so my work around was just to sync a single customer, no looping, no overwriting. Again more a fix for our use case than in general.
Would be awesome to hear some thoughts/ideas on these issues, not sure if anyone has seen a
target-postgres
creating tables over and over? I'm guessing its some quirk with the child streams?The text was updated successfully, but these errors were encountered: