GitHub user TTassoni added a comment to the discussion: help to Convert key - 
value pairs to field - value

Hi, liosc,
I tried to do what you suggested, using metadata injection. 
I used the example provided in [4522 
issue](https://github.com/apache/hop/discussions/4522) as starting point. 
Thanks to dave-csc, too.
In my sample, the injected pipeline first create a data grid to define a 'foo - 
bar' field - value pair, then the add constant transform receives real values 
to create new fields.
The test_keys_2_field.hpl file (filename says all...) is to test it.
As side effect I noted that without the data grid in the injected pipeline, it 
is not possible to see the field - value pairs in the last write to log 
transform of the test_keys_2_field pipeline. 
For now, it's enough for me. 
Hoping to help someone else, I attach my little sample project.
Thank you for pointing me out in the right direction.
Tom
[keys_2_field.zip](https://github.com/user-attachments/files/19161358/keys_2_field.zip)

GitHub link: 
https://github.com/apache/hop/discussions/4977#discussioncomment-12447900

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to