Open
Description
I'm getting an error "Distinct not supported in expressions", coming from:
ecto_sqlite3/lib/ecto/adapters/sqlite3/connection.ex
Lines 1463 to 1473 in a04c249
My query is like:
from(
s in SomeSchema,
where: s.tenancy_id == ^tenancy_id,
select: %{
users_count: count(s.user_id, :distinct)
}
)
|> App.Repo.one()
Is there a supported way to write the query other than using a fragment
?
Metadata
Metadata
Assignees
Labels
No labels