[ 
https://issues.apache.org/jira/browse/RANGER-4529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj updated RANGER-4529:
-------------------------------------
    Fix Version/s: 2.5.0

> 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
>            Priority: Major
>             Fix For: 3.0.0, 2.5.0
>
>         Attachments: RANGER-4529.patch
>
>
> 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)

Reply via email to