sai_tai
07/16/2021, 5:00 PM#meltano.yml
- name: tap-adwords
variant: meltano
pip_url: git+<https://gitlab.com/meltano/tap-adwords.git>
config:
start_date: '2021-06-16T00:00:00Z'
end_date: '2021-06-17T00:00:00Z'
customer_ids: '00000000000'
catalog: model/tap-adwords.json
# model/tap-adwords.json
{
"stream": "AD_PERFORMANCE_REPORT",
"tap_stream_id": "AD_PERFORMANCE_REPORT",
"metadata": [...],
"schema": {
"type": "object",
"is_report": "true",
"properties": {
"callOnlyAdPhoneNumber": {
"description": "Call-only ad phone number",
"type": [
"null",
"string"
]
},
"activeViewMeasurableCost": {
"description": "Active View measurable cost",
"type": [
"null",
"number" #<========== Sai: Number here
]
},
}
Logs:
tap-adwords (out) | {"type": "SCHEMA", "stream": "KEYWORDS_PERFORMANCE_REPORT" ....
"activeViewMeasurableCost":
{"description": "Active View measurable cost",
"type": ["null", "integer", "string"]} <========= Sai:It is not what I defined
.....}
visch
07/16/2021, 5:06 PMsai_tai
07/16/2021, 7:27 PMvisch
07/16/2021, 7:30 PMsai_tai
07/16/2021, 9:25 PMsai_tai
07/16/2021, 9:26 PMmeltano --log-level=debug elt tap-adrds target-postgres
. Didn't specific the job-id and have used meltano install
after updating the catalog attribute in meltano.ymlvisch
07/16/2021, 9:27 PMcatalog: model/tap-adwords.json
means there's no caching or any of thatvisch
07/16/2021, 9:30 PMvisch
07/16/2021, 9:30 PMvisch
07/16/2021, 9:30 PMsai_tai
07/16/2021, 9:38 PMmeltano --log-level=debug elt tap-adwords target-postgres --dump=catalog > tap-adwords.json
after the tap-adwords.json
had been generated, I modify it a bit to test if I can override the one that was generated by defaultsai_tai
07/16/2021, 10:19 PMschema:
AD_PERFORMANCE_REPORT:
activeviewavgcpm:
type: ["null", "integer"]
it's still using a schema that I don't know where it refers to
tap-adwords (out) | {"type": "SCHEMA", "stream": "AD_PERFORMANCE_REPORT", "schema": {"type": "object", "is_report": "true", "properties": {"activeViewAvgCPM": {"description": "Active View avg. CPM",
"type": ["integer", "string", "null"]},
....
visch
07/17/2021, 2:01 PMmeltano invoke tap-adwords
until we get the output you'd expect
2. If you run meltano invoke --dump=catalog tap-adwords > tap-adwords.json
does that give you the output you're after? Or not?
3. activeViewAvgCPM
isn't in https://gitlab.com/meltano/tap-adwords , so either it's getting changed slightly ( https://gitlab.com/meltano/tap-adwords/-/blob/master/tap_adwords/__init__.py#L926 touches that stream which tied with your error smells funny but could be nothing) , OR something else is changing it.sai_tai
07/18/2021, 4:52 PM