- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Deleting Specific fields data based on another field Data in the file in NIFI
- Labels:
-
Apache NiFi
Created on 08-18-2021 12:37 PM - edited 08-18-2021 01:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Team,
I have a scenario if an Participant status Filed value is 'Inactive' then i should update some of the columns data in the file with NULL/empty. Could you please help me in how can we achieve this?
Created 08-23-2021 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got this Scenario successfully using Query Record Processor.
Written SQL query with UNION ALL
(
Select
col1, col2, .....
From tb1
where 'participant status' <> 'inactive'
UNION ALL
Select
col1, col2,
..
'',
'',
'',
''
FROM tb1
where 'participant status' = 'inactive'
)
Created 08-23-2021 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got this Scenario successfully using Query Record Processor.
Written SQL query with UNION ALL
(
Select
col1, col2, .....
From tb1
where 'participant status' <> 'inactive'
UNION ALL
Select
col1, col2,
..
'',
'',
'',
''
FROM tb1
where 'participant status' = 'inactive'
)
