Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ReplaceTextWithMapping processor. De-duplicate only specific columns in a file

avatar
Rising Star

I have a CSV file with 9 columns. How can I remove duplicates among columns 4 through 9?

What we tried:

1. Split 1-4 columns in a file

2. Split 4-9 columns -> Deduplicate records

Now, i tried using 'ReplaceTextWithMapping' to merge the files with 4th column (Common on both files). But I am not sure if my approach is right.

Is there any other way to achieve this.

1 ACCEPTED SOLUTION

avatar

Hi @bala krishnan ,

Not a solution but just to let you know that with the next version of NiFi (coming soon) you will be able to use ValidateCSV processor to achieve what you are looking for. In the meantime, I think that splitting the file is not going to help. Maybe trying something custom with ExecuteScript processor but probably not ideal.

Hope this helps.

View solution in original post

1 REPLY 1

avatar

Hi @bala krishnan ,

Not a solution but just to let you know that with the next version of NiFi (coming soon) you will be able to use ValidateCSV processor to achieve what you are looking for. In the meantime, I think that splitting the file is not going to help. Maybe trying something custom with ExecuteScript processor but probably not ideal.

Hope this helps.