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

Fix indexing usage for refs with intersecting vars #164

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

tsandall
Copy link
Member

If refs have intersecting vars, the bindings produced by the index and the
evaluation of the non-indexed term may conflict. In this case, evaluation
should not continue as it means the variable did not unify.

Also, refactored check performed to determine if indexing can be used.

Fixes #153

If refs have intersecting vars, the bindings produced by the index and the
evaluation of the non-indexed term may conflict. In this case, evaluation
should not continue as it means the variable did not unify.

Also, refactored check performed to determine if indexing can be used.

Fixes open-policy-agent#153
@tsandall tsandall merged commit aec01e3 into open-policy-agent:master Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant