Comments (7)
Added the error messages to the issue
from tap-googleads.
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.
Could you post the error you're getting from target-postgres?
from tap-googleads.
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.
Let me know if this doesn't' work now and I'll reopen this!
from tap-googleads.
Thanks a bunch to @jlloyd-widen
from tap-googleads.
Related Issues (20)
- _constant for geolocation - Remove country filter, don't query for every customer HOT 1
- Service Account HOT 1
- Add a license
- Customer Not Enabled - If more than 25% of customers fail, the whole job should fail
- Add Conversions by Location Stream HOT 1
- Implement State HOT 2
- State file contains duplicate entries for partition
- Custom Reports
- start_date should be less than end_date
- JSON Schema linter
- Roadmap
- Auto add _sdc_primary_key to schema
- Cleanup
- 400 Client Error: Bad Request for path: /customers:listAccessibleCustomers HOT 4
- Upgrade SDK for new features!
- Pagination
- accesible_customers no primary key HOT 1
- 429 RESOURCE_EXHAUSTED - Should be retried
- Incremental Data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tap-googleads.