-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topdown: Fix for empty documents generated by partial rules
This commit fixes an issue in partial eval whereby OPA would generate an incorrect expression referring to a non-existent/undefined virtual document. This would occur if an expression referenced the full extent of a virtual document generated by partial rules and those partial rules were all undefined. In that case, the reference needs to be unified with the default (empty) value for that virtual document. Fixes #2492 Signed-off-by: Torin Sandall <torinsandall@gmail.com>
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters