Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify OPA Policy partial evaluation AST result #3341

Open
t83714 opened this issue Mar 30, 2022 · 0 comments
Open

Simplify OPA Policy partial evaluation AST result #3341

t83714 opened this issue Mar 30, 2022 · 0 comments

Comments

@t83714
Copy link
Contributor

t83714 commented Mar 30, 2022

Simplify OPA Policy partial evaluation AST result

Right now an expression idList[_] = x (assume x is unknown and idList = [1,2,3] ), OPA might generate 3 rules:

{ x = 1 }
{ x = 2 }
{ x = 3 }

We might want to look at if the new in operator can help to reduce the number of rules to one rule { x in [1,2,3] } (and we can handle in operator in our parser accordingly).

We can translate in operator into in SQL operator or elasticsearch terms query

Relevant:

@t83714 t83714 added this to the Next (v2.0.0) milestone Mar 30, 2022
@t83714 t83714 modified the milestones: Next (v2.0.0), v2.1.0 Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant