Open Torkan opened 1 month ago
Describe the bug Ash.Query.distinct does not affect the query when using Ash.count. Using Ash.read however works as expected.
To Reproduce
SomeResource |> Ash.Query.distinct([:some_field]) |> Ash.count!(opts) compare with SomeResource |> Ash.Query.distinct([:some_field]) |> Ash.read!(opts)
Expected behavior That the resulting query includes the distinct select-statement
Runtime
Describe the bug Ash.Query.distinct does not affect the query when using Ash.count. Using Ash.read however works as expected.
To Reproduce
Expected behavior That the resulting query includes the distinct select-statement
Runtime