-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
wasm: only returns first binding #3281
Comments
Aha, here's the offending line: https://github.com/open-policy-agent/opa/blob/master/rego/rego.go#L1927 |
Fixes open-policy-agent#3281. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Fixes #3281. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
@srenatus for tomorrow... Looks like there's another case that's not handled:
OPA version:
Not sure if this one can be traced back to the rego package or if it's happening deeper. E.g., I think we use the opa_set_t implementation from the C library for the results...are the results getting deduped? Technically the query results are sets though so perhaps we don't treat this as a bug... EDIT: Didn't mean to re-open. |
💭 Hmm. So, we'll definitely call result set add, and that will call opa/internal/compiler/wasm/wasm.go Lines 930 to 933 in 1d74786
which then deduplicates: Lines 1477 to 1480 in bd5c572
I suppose we could start a list of known differences that we're not going to address (at least not right away). This one and #3252 are on my radar so far... |
The text was updated successfully, but these errors were encountered: