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

Different result when iterating over virtual docs with ground values #490

Closed
tsandall opened this issue Oct 17, 2017 · 0 comments
Closed
Labels

Comments

@tsandall
Copy link
Member

Eval should succeed when iterating over virtual docs and testing with ground values.

package test

p = 1
> package data.test[x] = 1
false

Produces different result than:

> data.test[x] = y; y = 1
+-----+---+
|  x  | y |
+-----+---+
| "p" | 1 |
+-----+---+
@tsandall tsandall added the bug label Oct 17, 2017
tsandall added a commit to tsandall/opa that referenced this issue Oct 30, 2017
Topdown was trying to use the data index when iterating over modules.
This change modifies how topdown uses the rule tree to determine if the
reference refers to one or more rules.

Fixes open-policy-agent#490
tsandall added a commit that referenced this issue Oct 30, 2017
Topdown was trying to use the data index when iterating over modules.
This change modifies how topdown uses the rule tree to determine if the
reference refers to one or more rules.

Fixes #490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant