Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to the whole row in custom transformers #164

Open
marcoacierno opened this issue Jun 10, 2022 · 4 comments
Open

Access to the whole row in custom transformers #164

marcoacierno opened this issue Jun 10, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@marcoacierno
Copy link

I am building custom transformers to transform some of our data

The problem I am having is that inside the transformer I only have access to the column value, and nothing else, which makes it impossible for me to have transformers that change the value depending on something else.

One example I have is I want to anonymize users unless they are staff users. I can do it easily with emails (replibyte/transformers/email-transformer/src/main.rs) ) but I also want to keep their hashed password but since I only have access to the column value I have no way to know which password I am changing

@evoxmusic
Copy link
Contributor

Hi Marco, it's a valid use case and I am eager to provide an implementation to support it. I can't promise that I can take a look at it this weekend but I will try.

@evoxmusic evoxmusic added the enhancement New feature or request label Jun 12, 2022
@evoxmusic
Copy link
Contributor

Hi @marcoacierno , I started working on your request. I keep you posted when the PR is created :)

@crummy
Copy link

crummy commented Jul 10, 2022

I'm interested in this for concatenating fields - e.g. transform user id 12, first name 'john', last name 'smith', to user id 12, first name 'first12', last name 'last12'.

@gido
Copy link

gido commented Apr 18, 2023

Also interested by this feature :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants