I am having some trouble with json in stream maps....
# troubleshooting
a
I am having some trouble with json in stream maps. I have updated my meltano version to 3.5.0 and I have also downloaded the latest sdk here which had the updates which allows json in stream maps. Here is my .yml file:
Copy code
stream_maps:
  table:
    device: json.loads(device)
The error I am getting is:
Copy code
simpleeval.NameNotDefined: 'json' is not defined for expression 'json.loads(device)'
Any help would be appreciated!
1
r
What plugin are you configuring
stream_maps
for? That will have to be on the latest SDK version (
>=0.39.0
) to leverage the
json
module.
Not sure what you mean by "downloaded the latest sdk". In what context?
a
oh I did a pip install of the SDK, but I guess it depends on the plugin, I am using it for
target-snowflake
, is that on the latest SDK version?
r
Looks like it did get updated recently, but no new version has been published on PyPI yet. Until then, you can set the
pip_url
to
git+<https://github.com/MeltanoLabs/target-snowflake.git>
and then run
Copy code
meltano install --clean loader target-snowflake
cc @Edgar Ramírez (Arch.dev)
👀 2
a
Thank you so much!
e
Cutting a new release now 🙂
🔥 1