You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Topdown is producing incorrect results for refs with composite operands (#239):
torin:~$ cat x.rego
package x
p[[1,2]]
p[[1,3]]
p[[2,2]]
q = {
[1,2],
[1,3],
[2,2]
}
torin:~$ ll
torin:~$ opa run x.rego
OPA 0.5.7-dev (commit c25f2b4a, built at 2017-08-29T23:52:26Z)
Run 'help' to see a list of commands.
> data.x.p[[x,2]]
+---+
| x |
+---+
| 1 |
+---+
The text was updated successfully, but these errors were encountered:
The evalEqUnify implementation was not returning undo objects in cases
where it should: if unification failed after binding a var, the binding
was not undone and backtracking would proceed with an incorrect binding.
For this to manifest, a query would likely be iterating and performing
pattern matching on a composite value.
Fixesopen-policy-agent#436
The evalEqUnify implementation was not returning undo objects in cases
where it should: if unification failed after binding a var, the binding
was not undone and backtracking would proceed with an incorrect binding.
For this to manifest, a query would likely be iterating and performing
pattern matching on a composite value.
Fixes#436
Topdown is producing incorrect results for refs with composite operands (#239):
The text was updated successfully, but these errors were encountered: