Changes between Initial Version and Version 1 of Ticket #33282, comment 3
- Timestamp:
- Nov 12, 2021, 9:22:19 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33282, comment 3
initial v1 1 1 The issue seems related an attempt at doing a `GROUP BY` by a subquery that returns more than one row. See the `GROUP BY V0."hostname", (SELECT U0."name" FROM "lava_scheduler_app_devicetype" ...)` part. 2 2 3 The `Q(actual_device__isnull=False, actual_device__in=accessible_devices)` lookup in `RestrictedTestJobQuerySet.accessible_by_user` is causing that somehow, and I assume `Device.objects.accessible_by_user` is the culprit as it must do a subquery annotation somehow that is not limited to one row .3 The `Q(actual_device__isnull=False, actual_device__in=accessible_devices)` lookup in `RestrictedTestJobQuerySet.accessible_by_user` is causing that somehow, and I assume `Device.objects.accessible_by_user` is the culprit as it must do a subquery annotation somehow that is not limited to one row or maybe your manual backport of 136ff592ad8aa8b7fa1e61435e5501cc98ce8573 is to blame? In call cases you'll want to debug `get_group_by_cols`. 4 4 5 5 By giving a cursory look at your code base I couldn't identify the origin of the subquery annotation so I'll close with ''needsinfo'' for now but please re-open if you can create a minimal test case as I'll be monitoring this issue.