Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Ordering by child attribute is not always deterministic #5312

Open
lutter opened this issue Mar 29, 2024 · 0 comments
Open

[Bug] Ordering by child attribute is not always deterministic #5312

lutter opened this issue Mar 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lutter
Copy link
Collaborator

lutter commented Mar 29, 2024

Bug report

In a query for parents that orders by child__id, if many parents belong to the same child, the ordering is not deterministic because the SQL query only orders by child.id. To make it deterministic, we need to order by child.id, parent.id

@lutter lutter added the bug Something isn't working label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant