From 3ce95a9367cca12153406c807243a31f26545e88 Mon Sep 17 00:00:00 2001 From: Ramon Figueiredo Date: Fri, 16 Feb 2024 07:54:52 -0800 Subject: [PATCH] [cuebot] Fix duplicate join in find_jobs_by_show. (#1343) --- .../java/com/imageworks/spcue/dao/postgres/DispatchQuery.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/cuebot/src/main/java/com/imageworks/spcue/dao/postgres/DispatchQuery.java b/cuebot/src/main/java/com/imageworks/spcue/dao/postgres/DispatchQuery.java index 1d1f7210f..a789307af 100644 --- a/cuebot/src/main/java/com/imageworks/spcue/dao/postgres/DispatchQuery.java +++ b/cuebot/src/main/java/com/imageworks/spcue/dao/postgres/DispatchQuery.java @@ -44,7 +44,6 @@ public class DispatchQuery { "AND folder.pk_dept = point.pk_dept " + "AND folder.pk_show = point.pk_show " + "AND job.pk_job = layer.pk_job " + - "AND job_resource.pk_job = job.pk_job " + "AND (CASE WHEN layer_stat.int_waiting_count > 0 THEN layer_stat.pk_layer ELSE NULL END) = layer.pk_layer " + "AND " + "(" + @@ -139,7 +138,6 @@ public class DispatchQuery { "AND folder.pk_dept = point.pk_dept " + "AND folder.pk_show = point.pk_show " + "AND job.pk_job = layer.pk_job " + - "AND job_resource.pk_job = job.pk_job " + "AND (CASE WHEN layer_stat.int_waiting_count > 0 THEN layer_stat.pk_layer ELSE NULL END) = layer.pk_layer " + "AND " + "(" +