ash_sqlite: Error when querying on an inline code calculation
Hey there!
I'm trying out ash_sqlite on a toy project, and I'm encountering an issue which seems to boil down to querying a calculation defined as inline elixir code.
Here is the error (full stacktrace in the next post), followed by some relevant code. Happy to add more context if required.
This is invoked as
Event |> Ash.Query.filter(text_data == "asd") |> Ash.read
, where text_data
is defined as follow:
(the point is to have quick-and-dirty full text search on the content of a json data
payload).
Any guess on what could be happening here?5 Replies
Full stack trace:
Solution
You can't filter on calculations that don't define an expression
Inline function calculations don't
Ah. Yes, now that I think for 3 seconds, how would that work
thanks 🙂