bug(SQLAlchemy): Handle edge case get-field
and set-field
operators
#70
Labels
bug
Something isn't working
get-field
and set-field
operators
#70
In an earlier version of Cerbos, certain inputs could lead to complex query plan outputs. A full example can be seen in this issue.
As it stands, the SQLAlchemy adapter only handles a finite number of operators:
and
,or
andnot
. In some query plans, we see other operators:get-field
andset-field
. These are currently unsupported and break theget_query
function.In general, I think we try to avoid those operators altogether, but I still think we should protect against them and allow successful query resolution.
The text was updated successfully, but these errors were encountered: