Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
Describe the bug
If a user-defined object type contains a substring of a query language keyword (at the beginning or end of the name), the query API will incorrectly parse the substring as a query language keyword, which can lead to the parser returning a syntax error.
To Reproduce
Create an object-type called formation (which contains the keyword for at the beginning), the query API will return a syntax error for a valid query like:
select owner of type user for formation:123
Expected behavior
The query API should parse and evaluate queries like the one above as expected.
Describe the bug If a user-defined object type contains a substring of a query language keyword (at the beginning or end of the name), the query API will incorrectly parse the substring as a query language keyword, which can lead to the parser returning a syntax error.
To Reproduce Create an object-type called
formation
(which contains the keywordfor
at the beginning), the query API will return a syntax error for a valid query like:Expected behavior The query API should parse and evaluate queries like the one above as expected.
Additional context N/A