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 == rewriting on embedded terms #998

Merged
merged 1 commit into from
Oct 10, 2018
Merged

Conversation

tsandall
Copy link
Member

In a660d8f we added a rewriting stage that converts == to unification.
This simplifies evaluation and allows the rule index to be used,
however, the rewriting was incorrectly applied to == expressions that
are intended to yield a true/false value (and not undefined).

Fixes #995

Signed-off-by: Torin Sandall torinsandall@gmail.com

In a660d8f we added a rewriting stage that converts == to unification.
This simplifies evaluation and allows the rule index to be used,
however, the rewriting was incorrectly applied to == expressions that
are intended to yield a true/false value (and not undefined).

Fixes open-policy-agent#995

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
@tsandall tsandall merged commit d7b3937 into open-policy-agent:master Oct 10, 2018
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