markap14 commented on issue #3500: NIFI-6322: Reuse evaluator stored in 
CompiledExpression when creating a query.
URL: https://github.com/apache/nifi/pull/3500#issuecomment-496986229
 
 
   I'm happy to review this when I'm able, but just to add a bit of context, I 
believe the reason that it creates the Evaluator objects every time has to do 
with specific types of Expressions, especially those containing 'reduction 
functions' such as `${anyMatchingAttribute('a.*d'):equals('1')}`. In cases like 
that, there were issues with reusing the Evaluator. Now, that was a long time 
ago, and a lot of improvements & refactorings have been done. It's entirely 
possible that this may not be the case any longer, but I'd have to spend a lot 
more time testing & re-familiarizing myself with the code before I can be too 
definitive on it. In the meantime, would recommend you try running evaluations 
that contain the `anyMatchingAttribute`, `anyAttribute`, 
`allMatchingAttributes`, `allAttributes`, etc. types of functions. Those 
functions are pretty well documented at 
https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#multi

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to