You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
DISTINCT ON (e0."job_no") e0."job_no",
-- ...
e0."id"FROM"e2_routing"AS e0 WINDOW "order"AS (
ORDER BY
e0."job_no"DESC
)
ORDER BY
e0."job_no",
e0."job_no"DESCLIMIT
$ 1 [ 20 ]
The query generated without distinct is as expected:
Describe the bug
When sorting with distinct, the query builder seems to add an extraneous
ORDER BY
that conflicts with the specified sort direction.To Reproduce
The query generated without
distinct
is as expected:Expected behavior
Sort/direction should be preserved through a distinct query.
** Runtime
The text was updated successfully, but these errors were encountered: