dima_petukhov
03/23/2023, 3:19 PMtarget-postgres (transferwise)
meltano elt tap-shopify target-postgres
Meltano creates schema and tables, but there is no data inside
How to fix it?
With target-jsonl I have no issuesSven Balnojan
03/23/2023, 3:22 PMdima_petukhov
03/23/2023, 3:23 PMversion: 1
default_environment: dev
project_id: 1c283f37-fbe7-4ad1-af4d-043f03d09421
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-shopify
variant: singer-io
pip_url: tap-shopify
select:
- orders.*
- customers.*
- products.*
- abandoned_checkouts.*
- discount_codes.*
- order_refunds.*
- inventory_items.*
- inventory_levels.*
- shop.*
- fulfillment_orders.*
- fulfillments.*
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres
transformers:
- name: dbt-postgres
variant: dbt-labs
pip_url: dbt-core~=1.3.0 dbt-postgres~=1.3.0
config:
host: localhost
user: postgres
port: 5432
dbname: postgres
schema: public
add_record_metadata: true
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
Hello Sven
here it is my configdima_petukhov
03/23/2023, 3:24 PMaaron_phethean
03/23/2023, 3:40 PMdima_petukhov
03/23/2023, 3:41 PMdima_petukhov
03/23/2023, 3:49 PMaaron_phethean
03/23/2023, 3:52 PMedgar_ramirez_mondragon
03/23/2023, 3:57 PMroot_path/.meltano/run/tap-shopify/state.jsondima_petukhov
03/23/2023, 4:01 PM{
"bookmarks": {
"currently_sync_stream": "orders",
"orders": {
"updated_at": "2019-09-05T00:00:00.000000Z"
}
}
}dima_petukhov
03/23/2023, 4:11 PMmeltano elt tap-shopify target-postgres
the output:
1/3
```2023-03-23T160400.285294Z [info ] Running extract & load... name=meltano run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres
2023-03-23T160401.227346Z [warning ] No state was found, complete import.
2023-03-23T160402.499647Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=tap-shopify v0.0.1, Meltano SDK v0.4.9) cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.500790Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Skipping parse of env var settings... cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.501390Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Config validation passed with 0 warnings. cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.507043Z [info ] time=2023-03-23 170402 name=root level=INFO message=Operator '__else__=None' was not found. Unmapped streams will be included in output. cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.516905Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Added 'inventory_items' as child stream to 'inventory_levels' cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.517178Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Added 'inventory_levels' as child stream to 'locations' cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.517434Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Added 'transactions' as child stream to 'orders' cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.517723Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Beginning incremental sync of 'abandoned_checkouts'... cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.517929Z [info ] time=2023-03-23 170402 name=tap-shopify level=INFO message=Tap has custom mapper. Using 1 provided map(s). cmd_type=extractor name=tap-shopify run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.628043Z [info ] time=2023-03-23 170402 name=target_postgres level=INFO message=Schema 'tap_shopify' does not exist. Creating... CREATE SCHEMA IF NOT EXISTS tap_shopify cmd_type=loader name=target-postgres run_id=740d32da-25e3-4c20-b1ee-13f2298c97f5 state_id=2023-03-23T160358--tap-shopify--target-postgres stdio=stderr
2023-03-23T160402.666936Z [info ] time=2023-03-23 170402 name=target_postgres level=INFO message=Table '"abandoned_checkouts"' does not exist. Creating... CREATE TABLE IF NOT EXISTS tap_shopify."abandoned_checkouts" ("abandoned_checkout_url" character varying, "billing_address" jsonb, "buyer_accepts_marketing" boolean, "buyer_accepts_sms_marketing" boolean, "cart_token" character varying, "closed_at" character varying, "completed_at" character varying, "created_at" character varying, "currency" jsonb, "customer" jsonb, "customer_l…dima_petukhov
03/23/2023, 4:12 PMdima_petukhov
03/23/2023, 4:12 PMedgar_ramirez_mondragon
03/23/2023, 4:13 PMLoop detected in pagination. Seems like a bug in the tap, I think.Reuben (Matatika)
03/23/2023, 4:14 PMdima_petukhov
03/23/2023, 4:17 PMversion: 1
default_environment: dev
project_id: 1c283f37-fbe7-4ad1-af4d-043f03d09421
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-shopify
variant: matatika
pip_url: git+<https://github.com/Matatika/tap-shopify.git>
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres
transformers:
- name: dbt-postgres
variant: dbt-labs
pip_url: dbt-core~=1.3.0 dbt-postgres~=1.3.0
config:
host: localhost
user: postgres
port: 5432
dbname: postgres
schema: public
add_record_metadata: true
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>aaron_phethean
03/23/2023, 4:33 PMdima_petukhov
03/23/2023, 4:34 PMmeltano remove extractor tap-shopify
then
meltano add extractor tap-shopify --variant=matatikaaaron_phethean
03/23/2023, 4:34 PMdima_petukhov
03/23/2023, 4:35 PMdima_petukhov
03/23/2023, 4:35 PMReuben (Matatika)
03/23/2023, 4:36 PMmeltano remove will remove the associated virtual environment, and meltano add will implicitly install the plugin by default - so pretty sure it is our variant running in the case of the second set of logs.aaron_phethean
03/23/2023, 4:38 PMdima_petukhov
03/23/2023, 4:40 PMdima_petukhov
03/23/2023, 4:44 PMaaron_phethean
03/23/2023, 4:52 PMdima_petukhov
03/23/2023, 4:55 PMedgar_ramirez_mondragon
03/23/2023, 5:25 PMdefault_target_schema or schema_mapping in target-postgresReuben (Matatika)
03/23/2023, 9:21 PMtap-shopify in not yet pinned to a specific version on Meltano Hub, you should just have to
meltano install extractor tap-shopify --clean
and then (as before)
meltano invoke tap-shopify > data.outdima_petukhov
03/24/2023, 8:29 AMtap-shopify name as I understand?dima_petukhov
03/24/2023, 8:40 AMdima_petukhov
03/24/2023, 8:40 AMdima_petukhov
03/24/2023, 9:28 AM