Skip to content

Commit 400e225

Browse files
committed
CORE-2040 Fix raw SQL typos in apps.persistence.jobs
Fix typos introduced by #284 in apps.persistence.jobs/get-job-stats-fields and apps.persistence.jobs/get-job-stats-base-query
1 parent 5dd2fe4 commit 400e225

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/apps/persistence/jobs.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,13 +782,13 @@
782782
[(sql/subselect [:jobs :jc]
783783
(sql/aggregate (count :id) :job_count)
784784
(sql/where {:app_id :j.app_id})
785-
(sql/where (sql/raw "NOT EXISTS (SQL/SELECT parent_id FROM jobs jp WHERE jp.parent_id = jc.id)")))
785+
(sql/where (sql/raw "NOT EXISTS (SELECT parent_id FROM jobs jp WHERE jp.parent_id = jc.id)")))
786786
:job_count]
787787
[(sql/subselect [:jobs :jc]
788788
(sql/aggregate (count :id) :job_count_failed)
789789
(sql/where {:app_id :j.app_id
790790
:status failed-status})
791-
(sql/where (sql/raw "NOT EXISTS (SQL/SELECT parent_id FROM jobs jp WHERE jp.parent_id = jc.id)")))
791+
(sql/where (sql/raw "NOT EXISTS (SELECT parent_id FROM jobs jp WHERE jp.parent_id = jc.id)")))
792792
:job_count_failed]
793793
[(sql/subselect :jobs
794794
(sql/aggregate (max :start_date) :last_used)
@@ -804,7 +804,7 @@
804804
(sql/aggregate (count :id) :job_count_completed)
805805
(sql/where {:app_id :j.app_id
806806
:status completed-status})
807-
(sql/where (sql/raw "NOT EXISTS (SQL/SELECT parent_id FROM jobs jp WHERE jp.parent_id = jc.id)")))
807+
(sql/where (sql/raw "NOT EXISTS (SELECT parent_id FROM jobs jp WHERE jp.parent_id = jc.id)")))
808808
:job_count_completed]
809809
[(sql/subselect :jobs
810810
(sql/aggregate (max :end_date) :job_last_completed)

0 commit comments

Comments
 (0)