Madhan Neethiraj created RANGER-4529:
----------------------------------------
Summary: optimize script evaluator to avoid creation of multiple
bindings
Key: RANGER-4529
URL: https://issues.apache.org/jira/browse/RANGER-4529
Project: Ranger
Issue Type: Improvement
Components: plugins
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj
Each call to {{RangerRequestScriptEvaluator.evaluateScript()}} creates a
binding. In case of row-filters having multiple expressions, as seen in
following example, evaluateScript() is called as many times - resulting
creation of multiple bundings for a given request. This can be avoided by
moving creation of bindings to {{RangerRequestScriptEvaluator }}constructor.
{code:java}
state == '${{USER.state}}' AND group IN (${{GET_UG_NAMES_Q()}}) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)