Hi @sachith ,
Use QueryRecord processor and configure/enable Reader/Writer controller services
Add custom sql query as new property to the processor
QueryRecord configs:
select id,age,
CASE WHEN name='' THEN 'abc'
end name
from FLowfile
The output flowfile from QueryRecord processor will have your desired result
id,name,age
1,sachith,29
2,abc,17
Best,
Helmi KHALIFA