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:
https://github.com/googleapis/google-cloud-go/pull/9015
Thank you!