quentin_gaborit
07/31/2023, 6:02 PMplugins:
extractors:
- name: tap-salesforce
variant: meltanolabs
pip_url: git+<https://github.com/meltanolabs/tap-salesforce.git@v1.5.1>
select:
- OpportunityHistory.*
config:
stream_maps:
OpportunityHistory:
__alias__: opportunity_history
2) To declare a plugin inheriting from another plugin? For example:
plugins:
loaders:
- name: target-bigquery
variant: z3z1ma
pip_url: git+<https://github.com/z3z1ma/target-bigquery.git@0.6.8>
dataset: public
project: ${GOOGLE_CLOUD_PROJECT}
location: ${GOOGLE_CLOUD_LOCATION}
- name: target-bigquery-github
inherit_from: target-bigquery
config:
dataset: github
edgar_ramirez_mondragon
07/31/2023, 6:07 PM1) use inline stream maps to alias stream?That variant of tap-salesforce doesn't support stream maps: https://hub.meltano.com/extractors/tap-salesforce/#capabilities. We're working on a revamped version of that connector based on the SDK that does support them, so stay tuned 🙂 .
2) To declare a plugin inheriting from another plugin?I'm not sure what problem you're having but the parent plugin seems to incorrectly define config outside of the
config
key:
plugins:
loaders:
- name: target-bigquery
variant: z3z1ma
pip_url: git+<https://github.com/z3z1ma/target-bigquery.git@0.6.8>
config:
dataset: public
project: ${GOOGLE_CLOUD_PROJECT}
location: ${GOOGLE_CLOUD_LOCATION}
quentin_gaborit
07/31/2023, 6:32 PM1) use inline stream maps to alias stream?
That variant of tap-salesforce doesn't support stream maps: https://hub.meltano.com/extractors/tap-salesforce/#capabilities. We're working on a revamped version of that connector based on the SDK that does support them, so stay tuned 🙂 .How about using it in the bigquery target then? With something like:
plugins:
loaders:
- name: target-bigquery-salesforce
inherit_from: target-bigquery
variant: z3z1ma
pip_url: git+<https://github.com/z3z1ma/target-bigquery.git@0.6.8>
config:
dataset: salesforce
stream_maps:
OpportunityHistory:
__alias__: opportunity_history
That seems to work because it actually starts creating the tables with the proper name. However before the run completes I get the following error: A record for stream 'OpportunityHistory' was encountered before a corresponding schema
2) To declare a plugin inheriting from another plugin?
I'm not sure what problem you're having but the parent plugin seems to incorrectly define config outside of theYeah sorry I messed up the copy/paste, the configuration is actually correct. I expected that inheritance would allow to overwrite some parameters without having to recreate a plugin venv. To be specific right now although I only use bigquery, I figured my only way to write my tap outputs to different datasets, I need to duplicate the target-bigquery in as many version as I have taps.key:config
Matt Menzenski
07/31/2023, 11:07 PMquentin_gaborit
08/01/2023, 12:09 PMCamelCase
to snake_case
? Ideally for both streams and stream properties?quentin_gaborit
08/01/2023, 12:18 PMuser
08/02/2023, 2:16 PM