Replies: 1 comment 2 replies
-
Hi there! Heh, yeah that's a peculiar case :) What happens here is that the parser will see |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I created this rule:
And it returns
{"union": {"1", "2"}}
which is suprising.
If I wrap the sets with brackets: {"union": (set1 | set2 | set3) }
then the result is what we would expect (all six values)
I am pretty sure the issue is the precedence of operations. But what I don't understand is that I cannot reach the same result {"union": {"1", "2"}} using any brackets. Can someone tell me why I get this result? Should not this be some sort of error?
Note: one of the developers in our team found this while implementing a production policy which I presented in a simplified form.
Beta Was this translation helpful? Give feedback.
All reactions