Hey everyone, I'm starting meltano and I have a qu...
# getting-started
a
Hey everyone, I'm starting meltano and I have a question about stream maps I want to replace a value in a record using
regex
, but it seems hard / impossible to
import re
module and use it with eval statement So what's the best way to achieve this using meltano ? I was wondering if I can easily add new built-in functions (like the
md5
), or make the re module available in the meltano-map-transformer (I guess I should add it to the singer_sdk/mapper.py file 🤔) Thanks in advance Edit: In general, what is the best way to handle custom transformer ? I know of the dbt solution, but I really want to transform my stream using python
e
We have an issue for that: https://github.com/meltano/sdk/issues/971 Although I'm not sure we'll be prioritizing it soon internally. For custom transformers, you might wanna look at the methods
StreamMapper
defines in the meltano-map-transform repo. It might also make sense to make the eval transformer easier to extend, so do log an issue in the singer sdk repo if you're interested in that.
r