Created 12-07-2017 01:07 PM
Hi,
I want to do something like this
SELECT * FROM FLOWFILE WHERE Gender = '${gender}'
Need Help. Thanks
Created 12-07-2017 08:38 PM
You should be able to do exactly what you showed with ${gender} as long as your incoming flow files have an attribute called gender. You would have to create that attribute before QueryRecord by using UpdateAttribute or by using a processor that extracts something from the content of the flow into an attribute called gender.
Created 12-07-2017 01:09 PM
If I do -> SELECT * FROM FLOWFILE WHERE Gender = 'Male', It works
Created 12-07-2017 08:38 PM
You should be able to do exactly what you showed with ${gender} as long as your incoming flow files have an attribute called gender. You would have to create that attribute before QueryRecord by using UpdateAttribute or by using a processor that extracts something from the content of the flow into an attribute called gender.
Created 12-12-2017 08:37 AM
Thnks Bryan