Massimiliano Marcon
09/02/2024, 6:18 AMwhere custmer_id = 100
) ?
• I would like to add a stream_maps
-based transformation and use faker
in it. The transformation fails because "'fake' is not defined" . The docs say:
Config for the Faker instance variable fake used within map expressions. Only applicable if the plugin specifies faker as an addtional dependency (through the singer-sdk faker extra or directly).
What does that mean? How can I enable faker?
Thank you 🙂Massimiliano Marcon
09/02/2024, 7:41 AMconfig:
stream_maps:
data_platform_raw-tbii_daily_gmv_nmv:
tb_channel_id: fake.pyint()
__filter__: >
actual_date == '2024-06-26'
and tb_account_number == 1542
and tb_channel_abbr == 'zafd'
faker_config:
seed: 0
meltano invoke
raises with an error saying that the fake
object is undefined.
Now it's kind of surprising because the tap-postgres
docs mentions faker_config
among the settings. Why mentioning it if the plugin doesn't support faker?Andy Carter
09/02/2024, 11:42 AMfaker
as an extra dependency in your pip_url
for this tap?Massimiliano Marcon
09/02/2024, 12:33 PMMassimiliano Marcon
09/02/2024, 12:33 PMMassimiliano Marcon
09/02/2024, 12:37 PMDo you havehow do I do that?as an extra dependency in yourfaker
for this tap? (edited)pip_url
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git@v0.0.11>
I tried adding [faker]
after tap-postgres
, after v0.0.11
, after postgres.git
. It always failed to installMassimiliano Marcon
09/02/2024, 12:46 PMpip_url: meltanolabs-tap-postgres[faker] @ git+<https://github.com/MeltanoLabs/tap-postgres.git@v0.0.11>
however meltano install
fails with:
raise CliError("Failed to install plugin(s)") # noqa: EM101
Massimiliano Marcon
09/02/2024, 1:08 PM- name: tap-postgres
variant: meltanolabs
pip_url: meltanolabs-tap-postgres[faker] git+<https://github.com/MeltanoLabs/tap-postgres.git@v0.0.11>
(There should be something in the docs that explains how to install plugins with extra dependencies, btw)
In any case, even with this, the stream transformations can't find the fake
objectMassimiliano Marcon
09/02/2024, 1:22 PMEdgar Ramírez (Arch.dev)
09/02/2024, 4:26 PM(There should be something in the docs that explains how to install plugins with extra dependencies, btw)I agree! I'm curious what docs you were following. sdk.meltano.com, docs.meltano.com?
Massimiliano Marcon
09/03/2024, 4:57 AMI agree! I'm curious what docs you were following. sdk.meltano.com, docs.meltano.com?I was using both. It's possible that there is a snippet somewhere that shows you how to install plugins with extra dependencies, but if there is one, I missed it
Massimiliano Marcon
09/04/2024, 5:31 AM