Justin Yang
06/02/2025, 10:01 PM- name: meltano-map-transformer
variant: meltano
pip_url: meltano-map-transform
namespace: meltano_map_transformer
executable: meltano-map-transformer
config:
mappings:
- name: stringify-json-fields # <-- this is the mapping name
input: tap-postgres
transform: |
{% for key, value in record.items() %}
{% if value is mapping %}
record["{{ key }}"] = to_json(value)
{% elif value is iterable and value | length > 0 and value[0] is mapping %}
record["{{ key }}"] = to_json(value)
{% endif %}
{% endfor %}
return record
which is met with block violates set requirements: Expected unique mappings name not the mapper plugin name: stringify-json-mapper.
I’ve been looking through the docs on how to define mappers but I’m wondering if someone can point me to the right direction.Edgar Ramírez (Arch.dev)
06/03/2025, 9:46 PMplugins:
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: meltano-map-transform
mappings:
- name: stringify-json-fields
config:
stream_maps:
"*":
json_field_1: json.dumps(json_field_1)
...
json_field_n: json.dumps(json_field_n)
Edgar Ramírez (Arch.dev)
06/03/2025, 9:47 PMJustin Yang
06/04/2025, 3:53 PM