Checks a record to see if it matches a filter statement.
We can’t always tell if a record matches a filter statement, and as such this
function may return
:unknown. Additionally, some expressions wouldn’t ever
make sense outside of the context of the data layer, and will always be an
error. For example, if you used the trigram search features in
ash_postgres. That logic would need to be handwritten in Elixir and would
need to be a perfect copy of the postgres implementation. That isn’t a
realistic goal. This generally should not affect anyone using the standard
framework features, but if you were to attempt to use this module with a data
ash_postgres, certain expressions will behave unpredictably.