FrederikP edited a comment on issue #3500: NIFI-6322: Reuse evaluator stored in CompiledExpression when creating a query. URL: https://github.com/apache/nifi/pull/3500#issuecomment-497000105 Indeed there is an issue. This test fails in the last line: ``` @Test public void testPreparedQueryWithReducingFunction() { final Map<String, String> attributes = new HashMap<>(); attributes.put("comma", ","); attributes.put("question", " how are you?"); final StandardPreparedQuery prepared = (StandardPreparedQuery) Query.prepare("${anyMatchingAttribute('audi.*'):matches('hello')}"); assertEquals("false", prepared.evaluateExpressions(attributes, null)); assertEquals("false", prepared.evaluateExpressions(attributes, null)); attributes.put("audience", "bla"); assertEquals("false", prepared.evaluateExpressions(attributes, null)); attributes.put("auditorium", "hello"); assertEquals("true", prepared.evaluateExpressions(attributes, null)); } ``` We won't be able to look into this further until next week. (holiday in GER + weekend) But we are willing to invest some time into this, because I think this really has huge impact on the performance of our cluster.
---------------------------------------------------------------- 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
