Code Monkey home page Code Monkey logo

Comments (7)

DanielPDWalker avatar DanielPDWalker commented on June 21, 2024 1

Added the error messages to the issue

from tap-googleads.

jlloyd-widen avatar jlloyd-widen commented on June 21, 2024 1

I'm getting a very similar error with target-snowflake transferwise variant.

2022-03-18T16:36:51.571689Z [info     ] invalid identifier '"CUSTOMER_CLIENT.ID"' cmd_type=loader job_id=gads_1 name=target-snowflake run_id=dc70b619-bb7d-4a3e-97c7-8bc53a27fca2 stdio=stderr

which pretty much immediately follows this log:

2022-03-18T16:36:51.123275Z [info     ] time=2022-03-18 10:36:51 name=target_snowflake level=INFO message=Running query: 'CREATE TABLE IF NOT EXISTS gads."CUSTOMER_HIERARCHYSTREAM" ("_SDC_BATCHED_AT" timestamp_ntz, "_SDC_DELETED_AT" text, "_SDC_EXTRACTED_AT" timestamp_ntz, "_SDC_SOURCE_SCHEMA" text, "CUSTOMERCLIENT" variant, PRIMARY KEY ("CUSTOMER_CLIENT.ID")) data_retention_time_in_days = 1 ' with Params {'LAST_QID': None} cmd_type=loader job_id=gads_1 name=target-snowflake run_id=dc70b619-bb7d-4a3e-97c7-8bc53a27fca2 stdio=stderr

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 variant or json field and therefore the primary key can't be accessed for the purposes of table creation.

from tap-googleads.

visch avatar visch commented on June 21, 2024

Could you post the error you're getting from target-postgres?

from tap-googleads.

visch avatar visch commented on June 21, 2024

One of the errors is due to: https://github.com/AutoIDM/tap-googleads/blob/main/tap_googleads/streams.py#L81

  • This one we just need to add the correct primary key if this isn't it (not sure how it was missed)

The other is due to: https://github.com/AutoIDM/tap-googleads/blob/main/tap_googleads/streams.py#L32

  • Need to add the correct primary key here

  • Final note is we should add a Test to run the whole connector with Target-Postgres as that's a pretty good standard. Today where this is running in production uses target-s3 so a lot of requirements are looser

from tap-googleads.

visch avatar visch commented on June 21, 2024

Let me know if this doesn't' work now and I'll reopen this!

from tap-googleads.

visch avatar visch commented on June 21, 2024

Thanks a bunch to @jlloyd-widen

from tap-googleads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.