Hariom Suryawanshi (BooksForMe)
11/25/2024, 7:48 AMEdgar Ramírez (Arch.dev)
11/25/2024, 3:30 PMHere I am not able see any data for products, orders(it shows empty table)You can confirm your selections work as expected by looking at the output from
meltano select tap-magento --list --all
in carts table I am able to see data but for customer column I have json and configured flatting enabled but it is not working properly so can you guide me herecan you run
meltano invoke tap-magento --discover > catalog.json
and look at the contents of catalog.json
. We're looking for streams[].schema.properties.customer
to see what's its type
.Hariom Suryawanshi (BooksForMe)
11/26/2024, 11:20 AMEdgar Ramírez (Arch.dev)
11/26/2024, 3:50 PMcustomer
field doesn't have any details to its properties in the schema: https://gitlab.com/hotglue/tap-magento/-/blob/d6cbf5f951d8e25fb8487409f432a00917c78e74/tap_magento/streams.py#L706
One approach that might work is overriding the schema for it with the fields you want to flatten out:
extractors:
- name: tap-magento
schema:
carts:
customer:
type: ["object"]
properties:
id:
type: integer
group_id:
type: integer
...
https://docs.meltano.com/concepts/plugins/#schema-extra