Created 07-18-2018 08:46 PM
The data is in the below format:
1;p1:"123",p2:"234";r1
2;p1:"333",p2:"444",p3:"555";r2
3;p2:"666",p5:"888";r3
p1, p2, p3 and so on could be a great variety of params. So in the output I'd like to have a structure in csv of such kind:
1;p1;123;r1
1;p2;234;r1
2;p1;333;r2
2;p2;444;r2
2;p3;555;r2
3;p2;666;r3
3;p5;888;r3
How to implement it with standard record processors?
Thanks.
Created 07-20-2018 07:38 PM
You could do this in NiFi using the following steps:
All of the above requires the use of the NiFi Expression Language, documented here: https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html
Created 07-20-2018 09:13 PM
Thanks for the answer. But I got rid of extracttext cause I am dealing with thousands of rows. I 've been using it since 0.6.1 version until 1.2. Moreover I don't know how many params p1, p2 there could be and its order. So I consider using Updaterecord or maybe ForkRecord in some way. Any help is appreciated.
Created 08-11-2018 03:17 PM
Hello. I wonder if there are no ideas how to implement this work using Updaterecord?