-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtering by enums is incorrect by AIP-160 #203
Comments
One workaround is to avoid using DeclareEnumIdent for enums, and to use Then in |
Try
I referenced this test code. |
The problem is that enum constants must be wrapped in double-quotes as per the spec. This means that
|
I don't agree that string representation means the value should be quoted. I'd say the current behavior is correct. |
Thanks, I just tested on the Google Compute Engine API List API and it accepts both quoted and unquoted. Let me clarify on aip-dev/google.aip.dev#1039 |
This issue has been open for 365 days with no activity. Marking as stale. |
Hey, I'm trying to understand how this library works for filtering by enums.
In AIP-160, it states
However, it appears that
filtering.ParseFilter
doesn't accept string for comparing enums.Trying to parse a filter string likestate="READY"
gives an error like:Instead, it looks like it uses an ident, as per this example here: https://github.com/einride/spanner-aip-go/blob/master/spanfiltering/transpiler.go#L119 which corresponds to a filter expression like
state=READY
, which is not conforming to AIP-160.Am I misunderstanding how this library is used? Or is my assessment correct in that the library incorrectly parsing filters containing enums?
The text was updated successfully, but these errors were encountered: