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
I am using this filter that is a valid gcp pubsub filter to work with cloudevents (it's working on prod), however, when trying to parse it using pstest (that uses this library to parse the filtering expression) I am unable to parse it.
The filter expression is the following:
attributes.ce-service=user OR attributes.ce-service=accessright
And the error:
^ unexpected trailing token - (1:14)
I tried to quote the expression to try to fix the things out, but that didn't help either.
Input:
"attributes.ce-service=user OR attributes.ce-service=accessright"
Err:
non-bool result type
I guess that is taking that "-" as an operator, but didn't found a way to do it (backslash didn't work).
I had to disable the filtering locally as before this was implemented:
Hello!
I am using this filter that is a valid gcp pubsub filter to work with cloudevents (it's working on prod), however, when trying to parse it using pstest (that uses this library to parse the filtering expression) I am unable to parse it.
The filter expression is the following:
And the error:
I tried to quote the expression to try to fix the things out, but that didn't help either.
Input:
Err:
I guess that is taking that "-" as an operator, but didn't found a way to do it (backslash didn't work).
I had to disable the filtering locally as before this was implemented:
googleapis/google-cloud-go#9015
Thank you!
The text was updated successfully, but these errors were encountered: