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
Before, the planner had decided to shadow all rules whenever a with statement was targeting "data".
Now, it's looking at the ruletrie to see if whatever ref the with statement targets actually is a rule (or package ref). If so, it'll shadow, if not, it won't.
Fixes#3150.
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
Right now, any encountered with statement will cause all data functions to be put aside, and replanned (in a new "generation"):
opa/internal/planner/planner.go
Lines 611 to 620 in 30a0654
We could attempt to be more sophisticated here. In bundles with heavy
with
usage, this causes the wasm code to have a whole lot of functions.The text was updated successfully, but these errors were encountered: