haleemur_ali
08/11/2021, 2:56 PMplugins:
extractors:
- name: tap-marketo
variant: meltano
pip_url: git+<https://gitlab.com/meltano/tap-marketo.git>
config:
endpoint: $MKTO_ENDPOINT
identity: $MKTO_IDENTITY
client_id: $MKTO_CLIENT_ID
start_date: 2015-01-01
client_secret: $MKTO_CLIENT_SECRET
select:
- leads.id
- leads.createdAt
- leads.updatedAt
- leads.userUUID
loaders:
- name: target-postgres
variant: datamill-co
pip_url: singer-target-postgres
config:
postgres_host: localhost
postgres_password: meltano_local
postgres_username: meltano_local
postgres_database: meltano_local
postgres_port: 5432
and i tried running the cli command meltano elt tap-marketo target-postgres
but it seems to be fetching everything, which i would like to avoid.haleemur_ali
08/11/2021, 2:56 PMdouwe_maan
08/11/2021, 3:07 PMhaleemur_ali
08/11/2021, 3:11 PMhaleemur_ali
08/11/2021, 3:12 PMdouwe_maan
08/11/2021, 3:15 PMI’m more than happy to contribute this back to the community.Awesome!
from a very quick glance, it seems that the singer-io tap is more actively maintained.I agree
douwe_maan
08/11/2021, 3:16 PMargs.catalog
, and it’s checked here: https://github.com/singer-io/tap-marketo/blob/master/tap_marketo/sync.py#L467 !douwe_maan
08/11/2021, 3:16 PMdouwe_maan
08/11/2021, 3:16 PMstate
, catalog
, and discover
haleemur_ali
08/11/2021, 4:33 PMfor stream in catalog["streams"]:
the Catalog class has a method to_dict
https://github.com/singer-io/singer-python/blob/master/singer/catalog.py#L52 and converting to a dict prior to accessing a key resolves the bug for me.